<p>Am 21.03.2013 18:58 schrieb "Hans-Peter Diettrich" <<a href="mailto:DrDiettrich1@aol.com">DrDiettrich1@aol.com</a>>:<br>
><br>
> Sven Barth schrieb:<br>
><br>
>> Am 21.03.2013 14:42, schrieb Michael Schnell:<br>
>>>><br>
>>>> * the ability to delegate the implementation of the interface to a different class (using the "implements" keyword)<br>
>>><br>
>>> To allow for a kind of multiple inheritance, I supple.<br>
>><br>
>> It kind be used for a kind of multiple inheritance, but it's main purpose is to avoid code duplication.<br>
>><br>
>> For more information you can take a look here: <a href="http://www.freepascal.org/docs-html/ref/refse39.html#x91-1010007.4">http://www.freepascal.org/docs-html/ref/refse39.html#x91-1010007.4</a><br>
><br>
><br>
> Interface delegation is something different from multiple inheritance. The interface implementor and the interfaced object then have nothing in common, the methods of the implementor cannot access elements of the interfaced object.</p>
<p>But with only interfaces you inherit merely the syntactical "interface" while with delegation you can also reuse an existing implementation for that interface.</p>
<p>Regards,<br>
Sven</p>