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
Should a constructor be public or private?
what are function pointers?
Can a list of string be stored within a two dimensional array?
What is ifstream c++?
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
Describe the syntax of single inheritance in C++?
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
What are the four partitions in which c++ compiler divides the ram?
What does ctime() do?
What is prototype in c++ with example?
Should I learn c or c++ first?
What is a multiset c++?
What are the advantages of early binding?
What is the full form of ios?
Why are pointers not used in c++?