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
In a function declaration, what does extern mean?
What is expression parser in c++
What is ios in c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
Is c++ a good first language to learn?
Why do we need constructors in c++?
In the derived class, which data member of the base class are visible?
What is a sequence in c++?
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
What is a local reference?
Why we use #include iostream in c++?
Explain about templates of C++.
Is it possible to get the source code back from binary file?
What do you understand by pure virtual function? Write about its use?
What is the difference between a declaration and a definition?