class Main {
public static void main(String[] args) {
box a =new box();
System.out.print(a.ares());//这里调用的a。方法中的
//ares();怎么知道是box类中的loner和wih;
}
}
class box{
int longer =2;
int wih =6;
public int ares(){
return longer*wih ;
}
}