Private members:
The member data and members functions defined using access specifier private, can be accessed by member functions of that class only. Non-members of the class cannot access private members of the class. If no access specifier is mentioned for the members, then it is treated as private members.
For example;
The data members regno, fees and name can be accessed by only getdata() and printdata() member functions of the class student.