1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
program tw18610; {$mode delphi}{$H+} type IInt = interface procedure Test; end; TParent = class private type TChild = class(TInterfacedObject, IInt) public procedure Test; end; end; procedure TParent.TChild.Test; begin end; begin end.