Finally, you write the instructions to generate the classes, create the objects, and implement the methods. Your main program consists of instructions that send messages to objects. You might be wondering how it is possible to add objects, classes, and methods to REXX without breaking every REXX program ever written. The trick is in how REXX handles the variables. Traditional REXX stores all data as strings.
Strings represent character, as well as numeric, data.
To use object-oriented terminology, each string variable is an object that is an instance of the string class. In Object REXX, variables can reference objects other than strings. In addition to a string class, Object REXX includes an array class, a queue class, a stream class, and many other useful classes for building programs. These new classes help you organize your data better. You manipulate the objects from these new REXX classes by methods, instead of traditional functions.