9.总是要改写toString

 默认的toString方法返回的是@+无符号十六进制的数,在实际中,我们通过重写toString方法,返回我们感兴趣的信息。

猜你喜欢

转载自blog.csdn.net/qq_27469549/article/details/80471437