1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

Public vs. protectedvs. private access members of a class can be:

*

private, the name can only be used by member functions and friends of the containing class

protected, the name can be used by the above and by member functions and friends of derived classes

public, the name can be used by any function

*

*

Use these to control visibility in the interface.

22-Mar-98

Page 7

C201/TAM