Wednesday, February 24, 2010

Public vs. Private vs. Protected

Public members can be accessed by any function in the program.

Private members can only be accessed by other functions within the class.

Protected members is accessible to members of classes that inherit from the class in addition to the class itself and any friends

No comments: