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 the difference between class to class type conversion and copy constructor ?

2 Answers  


i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,


In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually correspond? 1) The first argument passed into the program 2) The program name 3) You can't define main like that

6 Answers  


What is function overloading?,describe it with the example.

5 Answers  


Name an advantage of array over linked list?

24 Answers   GML, IBM, Software Solutions,


What is for loop and its syntax?

0 Answers  


Why is abstraction needed?

0 Answers  


can we make a class static without using static keyword?

5 Answers   Aspire,


what is overloading and overriding?

7 Answers  


Program to check whether a word is in all capital letters

1 Answers  


WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

1 Answers  


How do you use inheritance in unity?

0 Answers  


Categories