what is data hiding.
Answers were Sorted based on User's Feedback
Answer / arvind
Data & Functions in C++ are private by default. That means there is no previlige outside the class. The functions or objects defined outside the class can't access the data and functions.So by making data and functions private with in the class, its making the data hiding and function hiding. By default data is private and functions are public. So this is the concept of data hiding
| Is This Answer Correct ? | 9 Yes | 2 No |
What is oops and why we use oops?
Can we have a private virtual method ?
Can we create object of abstract class?
What is the fundamental idea of oop?
Which keyword is written to use a variable declared in one class in the other class?
Program to print 0 to 9 in cross order
What is namespace?
write a c++ code of diagonal matrix.
What is pure oop?
What is use of overloading?
Which method cannot be overridden?
How to overload new operator in c++