[ajug-members] boolean best?
Ben McEwen
benmcewen at gmail.com
Fri Dec 12 09:15:43 EST 2008
Unless you want a user to input "tranny" you probably want to stick with a
boolean or enum, or get all OO on it and have some that returns
person.getSex() that returns Sex.MALE or Sex.FEMALE.
2008/12/12 521 <521 at ofig.org>
> would boolean be best...:
>
> an object/class named Living...
>
> ?have a string gender ("male"/"female") OR have a boolean isMale or
> isFemale?
>
> which is more efficient (better design/etc.)?
>
> barclay
>
>
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20081212/8b12863a/attachment.html
More information about the ajug-members
mailing list