What is data abstraction? How is it implemented in C++?



What is data abstraction? How is it implemented in C++?..

Answer / Vivek Kumar Dubey

Data abstraction is a process of hiding the implementation details and exposing only the necessary functionality to the user. This allows users to interact with an object without knowing its internal workings. In C++, data abstraction can be achieved using classes and objects. Classes define the structure and behavior of an object, while objects are instances of a class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ Interview Questions

What is the meaning of the following declaration: int *const *const *i?

1 Answers   Adobe,


Tell us the size of a float variable.

1 Answers   Accenture,


How do you work around them?

1 Answers   Amazon,


What is an abstract class?

6 Answers   Siemens,


What do you by Function Overloading in C++?

1 Answers   Akamai Technologies, Infogain,


What is wrong with this statement? std::auto_ptr ptr(new char[10]);

1 Answers   Amazon,


What is an abstract class in C++

1 Answers   SwanSoft Technologies,


How will you execute a stack using a priority queue? (Push and pop should be in O (1)).

1 Answers   Adobe,


What are the advantages/disadvantages of using #define?

1 Answers   Amazon,


Briefly explain various access specifiers in C++.

1 Answers   Amdocs,


Explain the operator overloading feature in C++ ?

1 Answers  


How do you write a function that can reverse a linked-list in C++?

1 Answers   IBS,


Categories