Java之所有对象的公用方法>10.Always override toString

providing a good toString implementation makes your class much more pleasant to use.

It is recommended that all subclasses override this method.

When practical, the toString method should return all of the interesting information contained in the object.

原文地址:https://www.cnblogs.com/frankyou/p/6925432.html