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's c++ used for?
What are vectors used for in c++?
What is an overflow error?
What is the first name of c++?
Does c++ have arraylist?
What are the advantages of using friend classes?
Write about a nested class and mention its use?
Why is the function main() special?
What is a singleton class c++?
Is c++ faster than c?
Describe delete operator?
What are the two types of comments, and how do they differ?
Why is c++ difficult?
What are structs in c++?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;