What is the difference between public, private, protected
inheritance?
Answers were Sorted based on User's Feedback
Answer / adit
# 3
for V.M public
class a class b
private =! private.
public = public.
protected = public.
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 ? | 17 Yes | 29 No |
Answer / 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 |
What is the this pointer?
What is the use of 'using' declaration in c++?
What is this pointer in c++?
How to declaring variables in c++?
What do you mean by internal linking and external linking in c++?
What is a custom exception?
What is a constant? Explain with an example.
what is the size of a class which contains no member variables but has two objects??? is it 1 or 2??
How do you print a string on the printer?
Which is the best c++ software?
Do class declarations end with a semicolon?
What is stream and its types in c++?