Object Oriented Programming
21
Accessing class methods
•
Within other class methods, a method can
be called just like a function.
•
•
Outside the class, public methods can be
called only when referencing an object of
the class.