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://blog.ytso.com/15964.html