Classes and Interfaces - Effective Java
Item 15: Minimize the accessibility of classes and members
A well-designed component hides the API and the implementation. It communicates only via the API which is called encapsulation.
Advantages of encapsulation:
decouples the components
faster ...
techtenets.hashnode.dev9 min read