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
When can I use a forward declaration?
What are the unique features of C++.
Describe the setting up of my member functions to avoid overriding by the derived class?
Do you know what are static and dynamic type checking?
Which is not a valid keyword a) public b) protected c) guarded
What are the differences between java and c++?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
Can a program run without main in c++?
Is c++ the best programming language?
Is c++ a good beginners programming language?
Difference between pointer to constant vs. Pointer constant
Define virtual constructor.
Will a catch statement catch a derived exception if it is looking for the base class?
Explain how overloading takes place in c++?
What is a rooted hierarchy?