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 the difference between a type-specific template friend class and a general template friend class?
Why we use #include iostream in c++?
Is c++ the best programming language?
What is c++ hash?
Is it possible for a member function to delete the pointer, named this?
What is a constructor and how is it called?
What is the most useful programming language?
what is a reference variable in C++?
Explain overriding.
What is copy constructor? Can we make copy constructor private in c++?
Do you know about C++ 11 standard?
how to explain our contribution in the project?
Is dev c++ free?
What is binary search in c++?
What is the difference between c++ and turbo c++?