What is the difference between public, private, protected
inheritance?
Answer Posted / 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 |
Post New Answer View All Answers
What are the basics of local (auto) objects?
What is the use of string in c++?
Explain how we implement exception handling in c++?
What is the difference between C and CPP?
Does c++ have finally?
What kind of problems can be solved by a namespace?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
What is the syntax for a for loop? Why use of template is better than a base class? How many types of classes are there in c++? How do I get good at c++ programming? What is atoi? How the virtual functions maintain the call up? What is an undefined reference/unresolved external symbol error and how do I fix it? What are c++ tokens?