[ajug-members] boolean best?

Kerry Randolph kerry at randolph1.com
Fri Dec 12 13:47:51 EST 2008


You could send the object an intercourse() message.
If it triggers a Migraine Exception it is 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/5c512251/attachment.html 


More information about the ajug-members mailing list