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.
Printable View
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.
No, but you can subclass and override the behaviour.