[OSM-dev] Josm-patches and osm-lib was:OSM Date Formats

Martijn van Oosterhout kleptog at gmail.com
Wed Oct 3 09:39:59 BST 2007

On 10/2/07, Shaun McDonald <shaun at shaunmcdonald.me.uk> wrote:
> Having public parameters is completely against everything I've been
> taught in my 4 year Computer Science degree. If you have public
> getters and setters for all required properties then there is nothing
> that you cannot do, that you can do with public properties. There are
> often properties that you don't want any old person to come along and
> modify, thus the use of getters and setters.

If you don't want people to use them then you declare them private.
There's not really any difference between a public member and a pair
of getters/setters for a private member.

Have a nice day,
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/

More information about the dev mailing list