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 is difference between c++ 11 and c++ 14?
What is constructor and destructor in c++?
Difference between pointer to constant vs. Pointer constant
What do you mean by early binding?
What is pure virtual function?
Are c and c++ different?
What is the hardest coding language to learn?
How would perform Pattern Matching in C++?
How compile and run c++ program in turbo c++?
How do I start a c++ project?
How is modularity introduced in C++?
What is a dynamic binding in c++?
When is dynamic checking necessary?
What is the array and initializing arrays in c++?
What are the four partitions in which c++ compiler divides the ram?