Inherited default behavior of the toString method
The toString method is defined with default behavior in the
Object class.
Because every class is a subclass of the Object class,
every class inherits that method.
If the toString method
- is not overridden in a class or in any of the
superclasses of the given class, and
- the toString method is called on an object of the given
class,
- the default behavior of the toString method will
occur.