What are the access privileges in C++?

What are the access privileges in C++?

C++ has three access privileges. They are private, public and protected.
public- inherite the protected members as preotected in drived class and pubic members will 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.

Date:2002-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher