Explain the process of Abstraction with an example

Sharad Jaiswal
Sharad Jaiswal

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.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    C# Interview Questions

    What is C#?

    C# is a programming language which is object-oriented developed by Microsoft...

    C# Interview Questions

    Define a class and an object.

    A class is an example of properties and techniques that utilize and characterize a continuous substance...

    C# Interview Questions

    List the fundamental OOP concepts.

    The fundamentals of an OOP concept are:..