What is the difference between public, private, protected
inheritance?
Answer Posted / vivek kumar kaushal
Public: this is member function of its own and anyother
class.
Private: Class member access within its class.
Protected:this is member function to its own and derived
class.
| Is This Answer Correct ? | 34 Yes | 5 No |
Post New Answer View All Answers
Where and why do I have to put the "template" and "typename" keywords?
Is c++ a good beginners programming language?
Is java easier than c++?
What is the full form nasa?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
When you overload member functions, in what ways must they differ?
What is decltype c++?
What does int * mean in c++?
Explain Memory Allocation in C/C++ ?
How do you differentiate between overloading the prefix and postfix increments?
What are static member functions?
What is the default access level?
Can you declare an array without a size in c++?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is increment operator in c++?