Definition of the <MemberName> Procedure in the <Class1Name> Class Differs from Previous Definition in the <Class2Name> Basic Class

Description

In the class that is inherited from another class or interface, the signature of a predefined member differs from the signature of the member in a basic class or interface.

Troubleshooting Tips

Check if the signature of the member in a basic class or interface matches the signature of the predefined member in the inherited class.

Example

Interface IMyInterface
    Sub TestSub(a: Integer; b: String);
End Interface IMyInterface;

Class MyClass: Object, IMyInterface
    Sub TestSub(a: Integer);
    Begin
        
    End Sub TestSub;
End Class MyClass;

When the specified code is compiled, the following error is displayed: Definition of the TestSub procedure in the MyClass class differs from the previous definition in the IMyInterface basic class. The error occurs because a different number of parameters of the TestSub procedure is specified in the class and in the source interface.

See also:

Compiler Messages