Javatpoint Logo

91-9990449935

 0120-4256464

Javatpoint Logo

Data Abstraction in C++

In C++ program if we implement class with private and public members then it is an example of data abstraction.

Let's see the simple example of data abstraction.

Output:

Enter two numbers:
3
6
Sum of two number is: 9
Next TopicC++ Namespaces




Latest 4 Tutorials on JavaTpoint