Resolution:
Correct the code such that the return type for both the overriding method and the inherited method match; then recompile
Example:
The following example shows that method M1 overrides a binary-long return type with a string return type. This is not allowed.
class-id A1.
method-id M1 returning ret as binary-long.
end method.
end class.
class-id A2 inherits type A1.
method-id M1 override returning ret as string.
end method.
end class.