What is the difference between public, private, protected
inheritance?
Answer Posted / dee
public-->inherite the protected members as preotected in
drived class and pubic members wiull be public in derived
class
protected--->pubic and protecated members of the base class
will become protected in derived class
Private-->pubilc and proteacted members will become private
in derived class
| Is This Answer Correct ? | 170 Yes | 48 No |
Post New Answer View All Answers
What is a singleton c++?
what is the difference between overloading & overriding? give example.
How can we read/write Structures from/to data files?
Explain the differences between private, public and protected and give examples.
What do you mean by funtion prototype?
Can I learn c++ in a week?
What is abstraction c++?
Why c++ is so important?
Is c++ used anymore?
What are arithmetic operators?
What are shallow and deep copy?
What is the rule of three?
Does c++ have finally?
When does a name clash occur in c++?
Why are pointers not used in c++?