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 are the benefits of polymorphism?
Why polymorphism is used in oops?
Can a destructor be called directly?
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?
What is encapsulation process?
What does and I oop mean in text?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What are the two different types of polymorphism?
What is overriding vs overloading?
What is encapsulation with real life example?
What is class in oop with example?
Why is polymorphism important in oop?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is the difference between a mixin and inheritance?
What does I oop mean?