Encapsulation is a software design pattern that helps reduce complexity of a system. It does this by hiding the implementation details of the class and providing public interface. A class can implement an interface, which defines its public behavior without specifying how it is accomplished. This allows for future changes to the implementation without breaking compatibility with clients that use it.
Share a personalized message with your friends.