On 2017-09-09 17:39, Marco van de Voort wrote:
That is often called delegation, and if you search for java and delegation,
it seems not (which is not THAT surprising IMHO):

Thanks Marco. So it is actually similar to Object Pascal where you use object composition, but with Object Pascal's "implements" keyboard the interface is automatic in the new class's interface. Where-as with Java you have to define the interface and then delegate the calls to the composition object. I'm sure Eclipse must have that code-generation functionality built-in or an add-on that can do that.

So Object Pascal is just a bit more convenient, but the end-result (functionality) is the same in.

Thanks again for your input.

Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
_______________________________________________
fpc-other maillist  -  fpc-other@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-other

Reply via email to