What is the use of data hiding?



What is the use of data hiding?..

Answer / Gourav Pandey

Data hiding in C++ is a mechanism that prevents the user (programmer) from accessing the data members directly, keeping them safe within their respective classes. It helps in maintaining integrity and encapsulation by hiding the implementation details from the outside world.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Is java a c++?

1 Answers  


What is the latest c++ version?

1 Answers  


When we use Abstract Class and when we use Interface?where we will implement in real time?

1 Answers  


What are virtual functions and what is its use?

1 Answers  


What are the popular tools used to detect memory leaks in c++

4 Answers   TATA,


What is c++ programming language?

1 Answers  


What does ctime() do?

1 Answers  


What is a far pointer? where we use it?

1 Answers  


Why is c++ a mid-level programming language?

1 Answers  


What is the use of cmath in c++?

1 Answers  


What is a flag in c++?

1 Answers  


What are activex and ole?

1 Answers  


Categories