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 protected in oop?
What is the example of polymorphism?
What is meant by oops concept?
what are the realtime excercises in C++?
What is overriding vs overloading?
What is pointer in oop?
Why is polymorphism used?
Why do we need polymorphism in c#?
What is difference between data abstraction and encapsulation?
What does oop mean in snapchat?
#include
What is inheritance write a program to show use of inheritance?
What is difference between abstraction and encapsulation?
Why do we use inheritance?
Why do we use encapsulation in oops?