Delphi

Class Implementing Two Interfaces with Duplicate Method Names

Delphionly supports single inheritance. A Delphi class can only descend from a single parent class, but a Delphi class can implement multiple interfaces. type TAthlete = class(THuman, IWalker, IJumper) The TAthlete descends from the THuman parent class (which presumably descends from TInterfacedObject) and it implements both the IWalker and IJumper interfaces.What ifboth…
Read more