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 |
The type of variable a pointer points to must be the part of pointer's definition so that:
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
why constructor cannt be declar virtually? why destructor cannt be overloaded?
What is a null tree?
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile
What are the three parts of a simple empty class?
What are the two different types of polymorphism?
what is namespace? what are the uses of namespace?
Can abstract class have normal methods?
difference between static and non-static variables?
what is oops
what isthe difference between c structure and c++ class