Posted On: Feb 22, 2018
Abstraction is the process that is used to highlight an important feature of the class that can hide the irrelevant information.
For example – A driver of a car ought to know the details of the car such as its brand name, color, gear, brake, etc. However, the information that is not of importance to him are details of the car such as the exhaust system, internal engine, etc. Thus, the process of abstraction helps in identification and extraction of the information that is relevant to the user and not needed from the outside world. A number of parameters such as with the usage of “private” keyword can help in hiding internal information.
Never Miss an Articles from us.