this的特殊用法

来源:互联网 发布:mysql insert语法 编辑:程序博客网 时间:2024/06/05 13:12

构造器中调用构造器

this()  调用的使用必须是 第一语句


public class  app{

  int a;

public app(int a){

  this.a=11;

this()

}

 public app(){

}

}

0 0