1.为什么this关键字只能在一个构造器的首行调用另一个构造器
2.为什么为什么只允许在一个构造器中调用其他构造器一次
3.为什么不允许构造器递归调用:
class Flower
{
Flower(int petals)
{
//this("a",2);会提示构造函数递归调用
petalCount=petals;
System.out.println("Constructor w/ int arg only, petalCount= "+petalCount );
}
Flower(String s,int petals)
{
this(petals);
System.out.println("String & int args");
}
}