test10专题

day6 test10

package day6;class PersonA{private String name;private int age;public PersonA(String name, int age){this.name = name;this.age = age;}@Override //注解: 告诉编译器下面的方法是重写父类的public boolean equals(Object obj){