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 c++ is used for?
Explain static and dynamic memory allocation with an example each.
What is polymorphism in c++? Explain with an example?
Differentiate between declaration and definition.
What are references in c++? What is a local reference?
Describe exception handling concept with an example?
Why pointer is used in c++?
Is c++ free?
What is c++ and its uses?
What is the use of structure in c++?
What are the advantages of c++ over c?
What are stacks? Give an example where they are useful.
What return value must conversion operators have in their declaration?
List the advantages of inheritance.
Can I have a reference as a data member of a class? If yes, then how do I initialise it?