juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2004-04-01 04:28 pm

write protected members

Funny - if Java had something like:

write protected String currentDesciption;

meaning that this class and superclasses can write, but not other guys - there would be not much need to use those ugly getters and setters at all. :)

[identity profile] scriptum.livejournal.com 2004-04-02 03:19 am (UTC)(link)
Ай лав сеттерз энд геттерз. Ай фил со мач ин контрол, райтинг гетИт()! сетИт()!

[identity profile] anspa.livejournal.com 2004-04-02 03:58 pm (UTC)(link)
..uhu, and call them chief executives.

[identity profile] ivan-gandhi.livejournal.com 2004-04-02 06:59 pm (UTC)(link)
And now we have pointers as well - doggie, doggie...

[identity profile] 109.livejournal.com 2004-04-03 06:09 am (UTC)(link)
only subclasses, not superclasses.