Object-Oriented programming (OOP), provides an abstraction layer of the data on which you operate. It provides a concrete foundation between the data and the operations that you perform with the data, in effect, giving the data behavior.
By using the power of Object-Oriented programming, we can create classes and later extend its characteristics to incorporate additional functionality. Objects within a class can be protected to prevent those elements from being exposed; this is called "Data Hiding".
Data Hiding is an aspect of Object-Oriented Programming (OOP) that allows developers to protect private data and hide implementation details by encapsulating this within a class.
In the following ...