+ 1

Diffrence between private and public access control specifiers??

13th Nov 2016, 5:55 PM
Vinay
Vinay - avatar
2 Respostas
+ 2
the private members can not be access in main function, whereas the public members can be access in main function..
13th Nov 2016, 5:57 PM
Vinay
Vinay - avatar
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.
14th Nov 2016, 2:02 AM
Cohen Creber
Cohen Creber - avatar