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
Explain the concepts involved in Object Oriented programming.
What do you mean by overloading?
What are the 4 pillars of oop?
What is overriding in oop?
What is cohesion in oop?
write string class as your own class in java without using any built-in function
How do you define a class in oop?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is an advantage of polymorphism?
How do you achieve runtime polymorphism?
What is the real life example of polymorphism?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is abstraction oop?
Which type does string inherit from?