Object-Oriented Programming
A programming paradigm organizing code into objects that combine data and behavior.
Also: OOP
Definition
Object-Oriented Programming (OOP) is a programming paradigm that organizes software design around data (objects) rather than functions and logic. Objects are instances of classes and encapsulate data (attributes) and behavior (methods). The four core OOP principles are encapsulation (bundling data with methods), inheritance (classes deriving properties from parent classes), polymorphism (objects of different classes responding to the same interface), and abstraction (exposing only essential features). Languages supporting OOP include Java, Python, C++, and C#.
Example
“A BankAccount class encapsulates balance (data) and deposit()/withdraw() methods (behavior), allowing multiple account objects to manage their own state independently.”
Synonyms
- OOP
- class-based programming
- object-based design
Antonyms / Opposites
- functional programming
- procedural programming
Images
CC-licensed · free to useVideo
Related Terms
- class
- inheritance
- polymorphism
- design-pattern
