What is the difference between public, private, protected
inheritance?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What are Virtual Functions? How to implement virtual functions in "C" ?
When there is a global variable and local variable with the same name, how will you access the global variable?
Is arr and &arr are same expression for an array?
Why should you learn c++?
What are structs in c++?
Is recursion allowed in inline functions?
How do you know that your class needs a virtual destructor?
What do you mean by public protected and private in c++?
Which bit wise operator is suitable for turning off a particular bit in a number?
How long will it take to learn programming?
What is the role of C++ shorthand's?
Define Virtual function in C++.