Glossary termProgramming paradigm

Object-Oriented Programming

Also known as: OOP, Object orientation

Programming paradigm that organizes software around objects, which bundle data with the methods that operate on it and interact by sending messages.

Object-oriented programming (OOP) structures a program as a collection of objects, each combining state, meaning its data, with behavior, meaning the methods that act on that data. A banking program might define an account object holding a balance, with methods to deposit and withdraw that enforce rules such as preventing overdrafts. In class-based languages, a class serves as a blueprint from which many individual objects are created. Common principles include encapsulation, which hides internal details behind an interface; inheritance, which lets one class extend another; and polymorphism, which lets different objects respond to the same request in their own way.

Simula, developed by Ole-Johan Dahl and Kristen Nygaard at the Norwegian Computing Center in the 1960s, introduced classes and objects. Alan Kay and colleagues at Xerox PARC developed Smalltalk in the 1970s, a system built entirely around objects exchanging messages. The paradigm went mainstream with C++ in the 1980s and Java in the 1990s, and it shaped graphical user interfaces, in which windows and buttons map naturally onto objects. Barbara Liskov's work on data abstraction and subtyping gave it important theoretical grounding.

OOP is among the most widely taught and used paradigms, underpinning Java, C#, Python and Ruby and much of the software industry's vocabulary, including design patterns. Critics argue that deep inheritance hierarchies become brittle, that hidden mutable state complicates concurrency and that some designs add needless layers of indirection. A widely repeated piece of advice is to favor composition over inheritance. Many languages, including Rust, Go and Scala, mix object-oriented features with functional ones rather than adopting the paradigm wholesale.

Key points

  • Objects combine data and the methods that operate on it, hiding internal details behind a defined interface.
  • Simula introduced classes and objects in the 1960s, and Smalltalk at Xerox PARC developed the paradigm further.
  • Encapsulation, inheritance and polymorphism are the principles most often associated with OOP.
  • Critics warn that deep inheritance and hidden mutable state can make systems rigid and hard to reason about.

Related entries

Glossary term

Programming paradigm that builds software by composing pure functions, treating computation as evaluating expressions rather than changing state.

Glossary term

Design Pattern

Programming

Reusable, named solution to a commonly recurring problem in software design, described as a template rather than as finished code.

Glossary term

Abstraction

Programming

Principle of managing complexity by hiding details behind simpler interfaces, so a component can be used without knowing how it works inside.

Glossary term

Software architecture pattern that separates an application into a data model, views that display it and controllers that handle user input.

Technology

Java

Programming

Class-based, object-oriented programming language from Sun Microsystems whose programs run on the Java Virtual Machine across many platforms.

Technology

C++

ProgrammingVideo Games

General-purpose programming language created by Bjarne Stroustrup as an extension of C, combining low-level control with high-level abstractions.

Organization

Xerox PARC

HardwareProgrammingIdeas and Culture

Research center founded by Xerox in Palo Alto in 1970, where the Alto computer, Ethernet, laser printing and modern graphical interfaces took shape.

Person

Barbara Liskov

Programming

American computer scientist whose work on data abstraction, the CLU language and fault-tolerant distributed systems shaped modern programming practice.

Featured in guides

Referenced by

Other entries that discuss or point to Object-Oriented Programming.