Adding a Method to a Class

Use the DEFINE method to define methods for your new class. To define a TYPE method and a NAME= method, enter:

account~define('TYPE', 'return "an account"')
account~define('NAME=', 'expose name; use arg name')


[Back: Defining a New Class]
[Next: Defining a Subclass of the New Class]