delphi - Multiple inheritance for interfaces -
is there way define interface inherits 2 or more interfaces?
i tried following code on delphi2007:
iinterfacea = interface procedure a; end; iinterfaceb = interface procedure b; end; iinterfaceab = interface(iinterfacea, iinterfaceb);
.. , raised error e2029 ')' expected ',' found
@ line iinterfaceab = interface(iinterfacea, iinterfaceb)
.
there no multiple interface inheritance in delphi there no multiple inheritance in delphi @ all. can make class implement more 1 interface @ once.
tmyclass = class(tinterfacedobject, iinterfacea, iinterfaceb)
Comments
Post a Comment