oop

Encapsulation

Encapsulation is one of the four pillars of object-oriented programming, along with abstraction, inheritance and polymorphism. The idea is to restrict access to an object’s internal state through the use of access modifiers, and only… Read More »Encapsulation