From Classes and Methods chapter in PU/ Object Oriented Programming in C++
Asked on 1 Mar, 2020
0
953 Views
Public - The members declared as Public are accessible from outside the Class through an object of the class.
Protected - The members declared as Protected are accessible from outside the class BUT only in a class derived from it.
Private - These members are only accessible from within the class. No outside Access is allowed.
They are:
Add your answer