Specification of the Fore language provides for class declaration in the specified block of the code.
Change the specified identifier to specify the class identifier.
Class MyClass: Object
End Class MyClass;
Sub UserProc;
Var
Obj1, Obj2: MyClass;
Begin
Obj1 := New MyClass.Create;
Obj2 := New Obj1;
End Sub UserProc;
When the specified code is compiled, the string Obj2 := New Obj1; displays the following error: Class name is expected. To initialize the Obj2 variable, specify the same code as for the Obj1 variable.
See also: