An important aspect of object-oriented programming is data encapsulation (also called data hiding), whereby the implementation details of a class are kept hidden from the users of the class. Not only the implementation but also the data can be kept hidden from the user. Or one can choose to provide varying degrees of restricted access to those data members through functions.
Unable to display preview. Download preview PDF.