title: Good way to implement a child class
body: <p>So I have about 10-15 classes (this could grow to a much larger number in time) and they all have fairly similar variables within them:</p>
  
  <pre><code>temp
  conditions
  humidity
  load
  </code></pre>
  
  <p>..And stuff like that.   I'm looking to implement a parent class (abstract) to better manage this since they are all runnable.</p>
  
  <p>There's a part where I call a constructor for each of them and it's... just bad.</p>
  
  <pre><code> public ThreadHandler(NH.NHandler NSH, int threadNum){
      this.threadNum=threadNum;
      this.NSH = NSH;
  }
  
  public ThreadHandler(OPA.OpaHandler SgeSH, int threadNum){
      this.threadNum=threadNum;
      this.OpaSH = OpaSH;
  }
  
  public ThreadHandler(SGE.SgeHandler SgeSH, int threadNum){
      this.threadNum=threadNum;
      this.SgeSH = SgeSH;
  }
  </code></pre>
  
  <p>..... and on for 15 </p>
  
  <p>How would I implement a parent class to simply do</p>
  
  <pre><code>public ThreadHandler(objectType name, int threadNum){
      //Do stuff
  }
  </code></pre>
  
  <p>Thanks for any help.</p>