您的位置:首页 > 编程语言 > Java开发

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

2017-05-31 18:22 441 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: