WEB DEVELOPER SITE
PYTHONPHPJAVA
 

C++ Abstraction


It's a process of representing essential features without including implementation details.


The concept of abstraction is that we focus on essential qualities, rather than the specific characteristics of one particular example.

The concept of abstraction is that we focus on essential qualities, rather than the specific characteristics of one particular example.

Abstraction means, that we can have an idea or a concept that is completely separate from any specific instance.

For example, when you use cout, you're actually using the cout object of the class ostream. This streams data to result in standard output.


cout << "Hello!" << endl;

Abstraction acts as a foundation for the other object orientation fundamentals, such as inheritance and polymorphism. These will be discussed tutorial later.