title: SwingWorker causing errors in subclasses
body: <p>I have a Class(call it main class) and the method in main class calls methods of other classes.I have extended this main class in all other classes like this</p>
  
  <pre><code>      public class Evaluate extends Main
  </code></pre>
  
  <p>in my main class i am using swingworker ,so i have written the code like this</p>
  
  <pre><code>      class Main extends SwingWorker&lt;Void, Void&gt;{
          public Main(GUI frame) {
          p = frame;
  
          }
          //some more code 
  </code></pre>
  
  <p>Now when i build this program, it gives me the following error</p>
  
  <pre><code>        error: constructor Main in class Main cannot be applied to given types;
          public class Evaluate extends Main {
          required: GUI
          found: no arguments
          reason: actual and formal argument lists differ in length
  </code></pre>
  
  <p>Here GUI contains the main method from where my application starts.Kindly help me why this error is occurring.</p>