|
Problem:
You want to declare a method of a class. Solution:
Use the
Discussion: Methods of a class are created using a syntax almost identical to that used to create subroutines in packages. You may optionally specify the properties and signature of the method. Methods are the principle way to define the behavior of a class. A large number of later recipes describe the behavior of methods in more detail.
|