what is data hiding.

Answers were Sorted based on User's Feedback



what is data hiding...

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 data hiding...

Answer / mahesh

to secure data from other classes.

Is This Answer Correct ?    7 Yes 1 No

what is data hiding...

Answer / mahesh

to secure data from other classes.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More OOPS Interview Questions

What is a class?

32 Answers   Infosys, TCS, Thylak,


What is inheritance write a program to show use of inheritance?

0 Answers  


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?

1 Answers  


why to use template classes in c++?

1 Answers  


How to Increment the value of the empid E001 for each and every employee by using the programe?

1 Answers   Accenture,






wht is major diff b/w c and c++?

10 Answers  


What is Object and Class? What are the differences between them?

5 Answers  


Out of 4 concepts, which 3 C++ Follow?

1 Answers   TCS,


what is overloading and overriding?

7 Answers  


What is abstraction and encapsulation?

0 Answers  


JAVA is FULLY OBJECT ORIENTED PROGRAMING LANGUAGE?

3 Answers  


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

0 Answers   IBM,


Categories