title: How to define a explicit constructor when the parent class doesn't have a default constructor?
body: <p>I'm getting the following error in my code:</p>
  
  <blockquote>
    <p>Implicit super constructor GLabel() is undefined for default
    constructor. Must define an explicit constructor</p>
  </blockquote>
  
  <p>My parent class "GLabel" is contained in an external jar.  I can open the source file, but I can't make edits to it.  So I decided to extend GLabel to create the functionality I want.  </p>
  
  <p>As you can see "GLabel" class does not have an empty constructor.  I'm assuming this is what is causing the issue?  How do I fix this?</p>
  
  <p><strong>Child Class</strong>   </p>
  
  <pre><code>import acm.graphics.GLabel;
  
  public class BreakoutLabels extends GLabel{
  
      // no code inside
  
  }
  </code></pre>
  
  <p><strong>Parent Class</strong></p>
  
  <pre><code>public class GLabel extends GObject {
  
      public static final Font DEFAULT_FONT = new Font("Default", 0, 12);
  
      private String label;
  
      private Font labelFont;
  
      public GLabel(String str) {
          this(str, 0.0D, 0.0D);
      }
  
      public GLabel(String str, double x, double y) {
          label = str;
          setFont(DEFAULT_FONT);
          setLocation(x, y);
      }
  }
  </code></pre>