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 |
Where must the declaration of a friend function appear?
What methods can be overridden in java?
What are static member functions?
difference between macro and function?
What is expression parser in c++
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1
What is the best c++ compiler for windows 10?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
What is the c++ code?
In the derived class, which data member of the base class are visible?
Does c++ cost money?