[Lazarus] IUnknown and reference counting

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Mar 21 17:53:50 CET 2013


Sven Barth schrieb:
> Am 21.03.2013 14:42, schrieb Michael Schnell:
>>> * the ability to delegate the implementation of the interface to a 
>>> different class (using the "implements" keyword)
>> To allow for a kind of multiple inheritance, I supple.
> It kind be used for a kind of multiple inheritance, but it's main 
> purpose is to avoid code duplication.
> 
> For more information you can take a look here: 
> http://www.freepascal.org/docs-html/ref/refse39.html#x91-1010007.4

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.

DoDi





More information about the Lazarus mailing list