class Test
{
int x,y;
Test()
{
//this(3,3);
Test(3,3); //为什么不能这么用?
}
Test(int x,int y)
{
this.x=x;
this.y=y;
}
public static void main(String args[])
{
Test tmp;
tmp=new Test();
tmp.show();
}
void show()
{
System.out.println(x);
System.out.println(y);
}
}
{
int x,y;
Test()
{
//this(3,3);
Test(3,3); //为什么不能这么用?
}
Test(int x,int y)
{
this.x=x;
this.y=y;
}
public static void main(String args[])
{
Test tmp;
tmp=new Test();
tmp.show();
}
void show()
{
System.out.println(x);
System.out.println(y);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货