[Lazarus] Different packages for different usage

Sven Barth pascaldragon at googlemail.com
Fri Jun 19 11:49:28 CEST 2015


Am 19.06.2015 10:36 schrieb "aradeonas" <aradeonas at operamail.com>:
>
> Thanks but I cant understand you.
> Problem is for example I have a class that will used for  server and
> client but in client it will do some works with TPicture and in server
> there is no need for these functions and property and without them also
> class will work but I dont know how separate them so just changing a
> package do the job.

In that case you should use inheritance. Have a class which does the common
part which resides in a shared package. The client package then has a class
that extends that shared class with the TPicture related functionality.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150619/e9bdb5b3/attachment-0003.html>


More information about the Lazarus mailing list