What is the difference between public, private, protected
inheritance?
Answer Posted / munish saini
** Public variables, are variables that are visible to all
classes.
** Private variables, are variables that are visible only
to the class to which they belong.
** Protected variables, are variables that are visible only
to the class to which they belong, and any subclasses.
| Is This Answer Correct ? | 41 Yes | 10 No |
Post New Answer View All Answers
What are separators in c++?
Write about the retrieval of n number of objects during the process of delete[]p?
What is const pointer and const reference?
What do you mean by friend class & friend function in c++?
What is meant by a delegate?
What is the difference between set and map in c++?
Is it possible to provide special behavior for one instance of a template but not for other instances?
What are the data types in c++?
What is a pointer with example?
Can user-defined object be declared as static data member of another class?
What is the use of class in c++?
How does class accomplish data hiding in c++?
Difference between class and structure.
Why is c++ difficult?
How can I learn dev c++ programming?