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 is a container class? What are the types of container classes?
What is function prototyping? What are its advantages?
Can class objects be passed as function arguments?
What are associate containers?
What is an Iterator class?
Do you know what are pure virtual functions?
What is copy constructor? Can we make copy constructor private in c++?
What are the storage qualifiers?
What is an incomplete type in c++?
What is the best sorting algorithm, when there is a large amount of data, that cannot be fit in the main memory. ?
What is protected inheritance?
Define what is constructor?