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


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to