当前类的应用!this(n,0),相当与Employee(n,0);

解决方案 »

  1.   

    THIS:指向类本身没说错的话,这个例子是SL275里吧,呵呵
      

  2.   

    import java.util.*;
    class  test
    {
      test()
      {
        System.out.println("No variable");
      }
      test(String s)
      {
        this();
        System.out.println("String variable variable = " + s);
      }
      
    public static void main(String[] args) 
    {
        test a = new test("Test variable String");
    }
    }
      

  3.   

    this一般代表单前的类,而this(variableName),这种写法一般在构造器中,一个构造器调用另一个构造器使用你可以看看上面的例子