The first Class Now that we have seen how easy it is to create an object of a known class we are much more interested in how to create our own classes. For this purpose Object REXX has introduced new language elements, called ' directives '.
All directives begin with a double colon followed by the directive name and the parameter list.
Directives need to placed at the end of a source file and automatically terminate a preceding code block. You can find a complete description of directives in the Object REXX Reference. Methods belonging to one class must be defined following the class directive. At the moment the 'Dog' class fulfills only the minimum requirements for a class. However it does not have any attributes so far.