View Full Version : Can you add methods to existing classes?

06-26-2007, 02:41 AM
Can you add methods (or variables) to existing classes? What about overring some. If so how?

For example, a use could be to change the toString() method for all arrays to display a comma delimited string representation of its elements.

06-26-2007, 06:43 AM
No, but you can subclass and override the behaviour.