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
Can we use struct in c++?
Write about the access privileges in c++ and also mention about its default access level?
Does std endl flush?
What is lvalue?
Which operations are permitted on pointers?
What are the four partitions in which c++ compiler divides the ram?
What is the role of static keyword for a class member variable?
What are structures and unions?
How the delete operator differs from the delete[]operator?
Why is swift so fast?
What is fflush c++?
How to defines the function in c++?
Comment on c++ standard exceptions?
Define whitespace in C++.
What is virtual methods?