[Gambas-user] OO design problem?
Christof Thalhofer
chrisml at ...3340...
Mon Aug 29 08:19:39 CEST 2016
Am 28.08.2016 um 20:37 schrieb Jussi Lahtinen:
> It's very likely that I have missed something and I have some crucial
> design problem. So all suggestions are welcome!
> Thanks!
Hm, if I declare properties in a parent class I do this only for the
correct work of methods, that depend on the existence of these
properties in childs.
If a child does not overwrite the property, it has to be fulfilled by
the parent, so the property in the parent has to bedeclared with
property_read() ...
property_write() ...
so that methods later work in a correct way. That is a logical
consequence of the inheritance of properties.
For the mess of writing such a thingy by hand all the time I wrote for
me a little tool, the getter-setter-creator, it could be much better as
it is (id does only string, integer, float and date), but it works for
me. I attach it.
Alles Gute
Christof Thalhofer
--
Dies ist keine Signatur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gshelper-0.0.6.tar.gz
Type: application/gzip
Size: 13390 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160829/9398d6c3/attachment.gz>
More information about the User
mailing list