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 |
Write any small program that will compile in "C" but not in "C++"?
Can a constructor be private?
What is the main use of c++?
Write about the role of c++ in the tradeoff of safety vs. Usability?
What is the v-ptr?
can output 5 students using one dimensional array
When do we use copy constructors?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
What are the types of container classes?
How do you generate a random number in c++?
What is the function to call to turn an ascii string into a long?
How the compilers arranges the various sections in the executable image?