explain protected public private in cthese are


Explain protected, public, private in C++?

These are three access spaecifiers in C++.

- Public - Here data members and functions are accessible outside the class.

- Protected - Data members and functions are available to derived classes only.

- Private - Data members and functions aren't accessible outside the class.

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: explain protected public private in cthese are
Reference No:- TGS0354930

Expected delivery within 24 Hours