Encapsulation’s Relation to Object-Orientated Programming (OOP)
Encapsulation is a key concept in object-oriented programming. Encapsulation allows a programmer to create and maintain complex programs for the benefit of others rather than relying on the code of another programmer. A programmer could not create a program that can handle complex problems for their customers and other users without the ability to encapsulate and hide code. Therefore the functionality provided by encapsulation makes it a vital component to be knowledgeable on.