[Lazarus] Different packages for different usage
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus