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 |
Is java a c++?
What is the latest c++ version?
When we use Abstract Class and when we use Interface?where we will implement in real time?
What are virtual functions and what is its use?
What are the popular tools used to detect memory leaks in c++
What is c++ programming language?
What does ctime() do?
What is a far pointer? where we use it?
Why is c++ a mid-level programming language?
What is the use of cmath in c++?
What is a flag in c++?
What are activex and ole?