Ooops, may be I hit reply too fast.
It looks like when you write " TObjB = class(TObjA, IBBB)" you just
implement IAAA twice.
If you comment out IBBB
TImpB = class(TImpA{, IBBB})
public
procedure CallOfB;
//procedure IBBB.MethodB = CallOfB;
end;
then the "No matching implementati
Le 15/08/2021 à 00:43, Dmitry Boyarintsev via fpc-pascal a écrit :
Why is interface implementation not inherited, if explicit
implementation is used.
I guess this is because you can implement an interface through
delegation too:
https://www.freepascal.org/docs-html/ref/refse48.html
type
I
Hello,
Why is interface implementation not inherited, if explicit implementation
is used.
Example.
Here are interfaces:
IAAA = interface
procedure MethodA;
end;
IBBB = interface(IAAA)
procedure MethodB;
end;
Interface IBBB inherits from IAAA
Here's an implicit interface impleme