[Lazarus] IUnknown and reference counting

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Mar 21 21:15:44 CET 2013


Sven Barth schrieb:

>  > 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.
> 
> But with only interfaces you inherit merely the syntactical "interface" 
> while with delegation you can also reuse an existing implementation for 
> that interface.

Use an object (class instance) for the same purpose, and you don't have 
to write additional code as well.

DoDi





More information about the Lazarus mailing list