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 a class?
32 Answers Infosys, TCS, Thylak,
What is inheritance write a program to show use of inheritance?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
why to use template classes in c++?
How to Increment the value of the empid E001 for each and every employee by using the programe?
wht is major diff b/w c and c++?
What is Object and Class? What are the differences between them?
Out of 4 concepts, which 3 C++ Follow?
what is overloading and overriding?
What is abstraction and encapsulation?
JAVA is FULLY OBJECT ORIENTED PROGRAMING LANGUAGE?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?