Re: Implement two interfaces having same member name





On Nov 22, 8:16 am, iam...@xxxxxxxxx wrote:
Jatin wrote:
Rob Kennedy wrote:

Yes. It's called a method-resolution clause. See the help for more details.

Thank you, Rob.

Jatin
===========Hello all

Could you post a sample code ?

type
IWindow = interface
procedure Draw;
...
end;
ICanvas = interface
procedure Draw;
...
end;
TWindow = class(TInterfacedObject, IWindow, ICanvas)
procedure IWindow.Draw = Drawing;
...
procedure Drawing;
procedure Draw;
end;

Alan Lloyd

.