title: java how to get superclass reference in subclass
body: <p>I have 3 classes:</p>
  
  <p><code>class Superclass</code>...</p>
  
  <pre><code>public class Generic{
       public Generic(Superclass s){...}
  }
  </code></pre>
  
  <p>And a subclass extending Superclass</p>
  
  <pre><code>class SubClass extends Superclass{
        public void methodM(){
             Generic g = new Generic(???);
             ...
        }
  }
  </code></pre>
  
  <p>In <code>methodM</code> I use the constructor <code>Generic</code> and I want to pass a reference to the Superclass instance extended by Subclass. So I don't want to do something like <code>new Generic(new Superclass)</code>, rather something like: <code>new Generic(super.IdontKnowWhat)</code></p>
  
  <p>thank you</p>