the way Garrett wrote your class is a much more object oriented way of doing things. To make it even MORE so -- and to get some encapsulation goin' you'd mark all the Attributes of the cat glass private and create getters/setters for those attributes.
As for the reason why you're able to change the contents of your final
string array... read on.
An array is really an object. Even an array of primitives is an object. So, just like when you mark any old object as final, that means that you can't change what object that variable refers to -- (that's what final does to reference variables) however you can change the
state of the object it refers to.
So... check out this code snippet:
does that help?
[ February 06, 2003: Message edited by: Jessica Sant ]