Introduction to Encapsulation
Encapsulation is one of the main pillars of object oriented programming. It is a process of hiding a data member by declaring it as a private data member thereby enhancing its security.
Private data members can only be a...