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.

posted @ 2017-05-31 18:22  FrankYou  阅读(240)  评论(0编辑  收藏  举报