摘要:public class TestPerson{
public static void main(String[]args){
Person p1=new Person("a");
Person p2=new Person("b");
public class TestPerson{
public static void main(String[]args){
Person p1=new Person("a");
Person p2=new Person("b");
p1.setAge(100);
p2.setAge(59);
System.out.println(p1.name);
System.out.println(p1.getAge());
System.out.println(p2.name);
System.out.println(p2.getAge());
}