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
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
How long will it take to learn programming?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What is ofstream c++?
What is recursion?
List the merits and demerits of declaring a nested class in C++?
What is constructor in C++?
What is stream and its types in c++?
What is a breakpoint?
What are guid?
What is purpose of abstract class?
Define copy constructor.
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
How is new() different from malloc()?
Do you know the use of vtable?