继承Object类--重写toString() hashCode() equals() 方法
public class Person extends Object {
private String name;
private int age;
public Person() {
super();
}
public Person(String name, int age) {
super();
this.name = name;
this.age = age;...
原创
2018-04-26 13:55:39 ·
308 阅读 ·
0 评论