Abstraction in C++
It is one of the Object oriented programming concepts which is the basic one. It deals with data. Abstraction shows the essential information to the user and hides the internal details. For e.g., when you drive a motor bike, you know about bike moving, but the functionality of engine is not known. This is the abstraction. Types of abstraction: Abstraction is classified into two types as follows… · Data abstraction : it shows only necessary data. · Control abstraction : it shows only necessary information. Let us create the c++ program to implement abstraction. Code: #include <iostream> using namespace std; // Abstract class class ShapeEg { public: // It is a virtual function virtual void find_area() = 0; ...