Overriding Methods with the Final Directive is not Allowed

Description

The inherited class contains an overridden method described in the parent class using the Final directive.

Troubleshooting Tips

Rename the method in the inherited or parent class. Perhaps, the Final directive that is set for the method should be deleted from the parent class.

Example

Class MyClass: Object
    Final Sub UserProc;
    Begin
        
    End Sub UserProc;
End Class MyClass;

Class TestClass: MyClass
    Sub UserProc;
    Begin
        
    End Sub UserProc;
End Class TestClass;

When the specified code is compiled, the string Sub UserProc; of the TestClass class displays the following error: Overriding methods with Final directive is not allowed. To resolve the error, rename one of the methods UserProc or delete the Final directive.

See also:

Compiler Messages