What are the differences between public, private, and
protected access?
Answer Posted / abhay
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 ? | 14 Yes | 7 No |
Post New Answer View All Answers
What are the basics of local (auto) objects?
What is size of string in c++?
How the programmer of a class should decide whether to declare member function or a friend function?
Explain friend class?
List the issue that the auto_ptr object handles?
Is main a class in c++?
What is a character in c++?
Please explain the reference variable in c++?
In what situations do you have to use initialization list rather than assignment in constructors?
Why #include is used?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
What is the object serialization?
What is buffering in c++?
What is a null object in c++?
What is pure virtual function? Or what is abstract class?