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 the error in the code below and how should it be corrected?
Write a program to find the Factorial of a number
In the derived class, which data member of the base class are visible?
What is expression parser in c++
When should we use multiple inheritance?
Do you need a main function in c++?
What is std :: endl?
What is the basic difference between C and C++?
Why is main function important?
What is class invariant in c++?
write a programme to get a character and thier ASCII value
What are the storage qualifiers?
What are pointers used for c++?
Can we use clrscr in c++?
What happens when you make call 'delete this;'?