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 array in c++ example?
What is buffer and example?
What is scope resolution operator in c++ with example?
List the merits and demerits of declaring a nested class in C++?
What is implicit conversion/coercion in c++?
Is ca high or low level language?
Define private, protected and public access control.
What are the uses of static class data?
How compile and run c++ program in turbo c++?
What is the sequence of destruction of local objects?
What is a driver program?
Explain class invariant.
What are c++ variables?
What's the "software peter principleā?
Explain the concept of memory leak?