What is the difference between public, private, protected
inheritance?
Answer Posted / mahen dimri
for V.M public
class a class b
private =! private.
public = public.
protected = protected.
for V.M private
class a claas b
private =! private.
public = private.
protected = private.
for V.M protected
class a class b
private =! private.
public = protected.
protected = protected.
(Where V.M= Virtuality Mode)
| Is This Answer Correct ? | 23 Yes | 41 No |
Post New Answer View All Answers
What is c++ iterator?
What are single and multiple inheritances in c++?
What is data binding in c++?
What is difference between c++ 11 and c++ 14?
What is endl c++?
What are arithmetic operators?
What is algorithm in c++ programming?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
What are vtable and vptr?
What is encapsulation in c++?
What are the advantages of inheritance in c++?
What is virtual base class uses?
What sorting algorithm does c++ use?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
Explain register storage specifier.