Cory Marcus wrote:I actually have overridden toString in the Bicycle class, although I may be off in my method.
I am not certain, but I think the Object class has no code in its constructor.
A few minutes ago, I wrote:. . . Remembering that Object has no superclasses, execute all code in that constructor. . . .
Campbell Ritchie wrote:You would have to replace the field names with getXXX method names in the overridden toString method, but there may be a simpler way to do it:-That is a very crude attempt which you will need to refine for pretty‑printing.