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 are the steps in the development cycle?
What is scope operator in c++?
What is the two main roles of operating system?
What is the use of map in c++?
Where can I run c++ program?
Can a class be static in c++?
Write about the members that a derived class can add?
What is the type of 'this' pointer?
How can I learn dev c++ programming?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Why do we use double in c++?
Differentiate between a template class and class template in c++?
Which is the best c++ compiler for beginners?
Explain what is class definition in c++ ?
Write a program to concatenate two strings.