Answer Posted / 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 |
Post New Answer View All Answers
What is debug class?what is trace class? What differences are between them? With examples.
what type of question are asked in thoughtworks pair programming round ?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
c++ program to swap the objects of two different classes
What is polymorphism explain its types?
Can we have inheritance without polymorphism?
What is the diamond problem in inheritance?
What is multilevel inheritance explain with example?
Can a varargs method be overloaded?
Why we use classes in oop?
Which language is pure oop?
program for insertion ,deletion,sorting in double link list
What is the benefit of oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What does <> mean pseudocode?