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 destructor oops?
What is protected in oop?
What is the oops and benefits of oops programming?
What are the 5 oop principles?
What is the types of inheritance?
Can we create object of interface?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
what are the ways in which a constructors can be called?
What is class in oop with example?
What is class and object with example?
What is the difference between encapsulation and polymorphism?
What is the real time example of encapsulation?
What is the importance of oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
How do you define a class in oop?