Will Clausen's Website

Categories
WCW

Effective Java: Item #10

Item #10: Always override toString All classes that extend the Object class, which is to say all classes, have the toString method. When toString is not overriden, this method simply prints the name of the class, followed by an “@”, followed by the id of the instance of the class. This is not super helpful […]