Error 121: OBJECT must be defined in type definition An occurrence of "OBJECT" has been found outside of a type declaration. The keyword "OBJECT" is reserved for declaring class types. MyClass = (OBJECT) the_data: Integer; Procedure MyClass.MyMethod; END;