Sei sulla pagina 1di 1

Public, protected and private are three access specifiers in C++. 1.

Public data members and member functions are accessible outside the class. 2. Protected data members and member functions are only available to derived cla sses. 3. Private data members and member functions cant be accessed outside the class.