Encapsulation
- Tags
- soft-eng
Is a fundamental concept in OOP where we apply both information hiding and modular protection. This is done by attaching access-specifiers to class members such as private, protected, package or public. Attributes are often made private or protected (exposed to sub-classes) and methods are public or protected.