基本类型不能各自对应了,求解
person2 ming=new person2();person2 hong=new person2();
ming.setage(15);hong.setage(18);
class person2{
private int age;
public int getage(){ return age;}
public void setage(int firsetage){ this.age=firsetage;}public void setage(int lastsetage){ this.age=lastsetage;}}
Sign in to make a reply
用户7197367658
基本类型不能各自对应了,求解