Overview

OOP is one of the most widely used programming paradigms. It organizes software design around data, or objects, rather than functions and logic.

Four Pillars of OOP

  1. Encapsulation: Bundling data and methods that operate on that data within a single unit (class).
  2. Abstraction: Hiding complex implementation details and showing only the necessary features of an object.
  3. Inheritance: Allowing a class to inherit properties and methods from another class.
  4. Polymorphism: Allowing objects of different classes to be treated as objects of a common superclass.

Common Languages

  • Java
  • C++
  • Python
  • C#

Related Terms