Encapsulation protects abstraction.

Spread the loveEncapsulation: With the definition, it says the binding of the data members and member function into a single unit is encapsulation. So when we define a class, then through encapsulation a class can hide the internal details of how an object does something. Anytime you declare a class/structure … Continue reading Encapsulation protects abstraction.Continue Reading