public protected and private are 3 access


* Public, protected and private are 3 access specifier in C++.

* Public data members and member functions are accessible outside the class.

* Protected data members and member functions are only available to derived classes.

* Private data members and member functions can't be accessed outside the class. Though there is an exception can be using friend classes.        

 

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: public protected and private are 3 access
Reference No:- TGS0413015

Expected delivery within 24 Hours