public
– members are accessible from outside the classprivate
– members cannot be accessed (or viewed) from outside the classprotected
– members cannot be accessed from outside the class, however, they can be accessed in inherited classes.
public
– members are accessible from outside the classprivate
– members cannot be accessed (or viewed) from outside the classprotected
– members cannot be accessed from outside the class, however, they can be accessed in inherited classes.