Social Sciences, asked by komal6241, 1 year ago

State the important difference between public, private and protected members of aclass

Answers

Answered by Anonymous
0
hey

Private members cannot be inherited by other classes. Protected membersare the members that can only be used by the member functions and friendsof the class in which it is declared. Theprotected members cannot be accessed by non member functions.Protected members can be inherited by other classes.
Similar questions