+ 1
Diffrence between private and public access control specifiers??
2 Antworten
+ 2
the private members can not be access in main function, whereas the public members can be access in main function..
0
Public members can he accessed from anywhere.
Private can only be accessed by friends or other members inside the class.
Protected members can only be accessed by friends, other members inside the class, or derived classes.