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
What's the most powerful programming language?
What is difference between n and endl in c++?
What is a far pointer? where we use it?
Differentiate between an inspector and a mutator ?
Write about c++ storage classes?
How a pointer differs from a reference?
How does code-bloating occur in c++?
What is class definition in c++ ?
Can a program run without main?
What is a forward referencing and when should it be used?
Can we use this pointer in a class specific, operator-overloading function for new operator?
How we can differentiate between a pre and post increment operators during overloading?
What is isdigit c++?
Does c++ support exception handling?
What is using namespace std in cpp?