3 Replies Latest reply: Nov 20, 2008 5:32 AM by 807589 RSS

    this keyword problem , how refer to super super class?

    807589
      Hello

      I had many times a problem on specifying this keyword as an argument to a constructor
      For example in this case
      package Test;
      
      public class Model {
          public Model() {
          }
          
          public void connect(){
              new Thread(){
                  public void run(){
                      
                      new TestClass( *this* ).start();
                      
                  }
              };
          }
          
      }
      bolded this will refer to Thread class and i want it to refer to Model class i mean to the class up one level.
      Is there a way to do that?

      Edited by: neolegionar on Nov 20, 2008 3:16 AM