Encapsulation (OOP)
← Back to Core OOP Concepts
Hide internal state, expose behavior through interfaces. Objects control access to their data through well-defined methods, preventing external code from depending on implementation details.
Key Properties
Related
- Abstraction (complementary concept)
- Law of Demeter (reinforces encapsulation)