ArchitectureCode Structure
KW-0073

Encapsulation

Concept
Meaning

restricting direct access to internal data and exposing it only through controlled methods

Example

Using private class variables with public getter/setter methods to control access

Reference
Protects data integrity and enforces controlled interaction
Related
abstractiondata hidingoop

Built with ♥ by Sakib