title: Can't make inheritance work
body: <p>Have these two classes. </p>
  
  <pre><code>public class TVChannel
  {
      /**
      * Fields
      */
      private String name;
      private int length;
      private int day;
      private String start;
      private int year;
      private String comment;
  
      /**
      * Constructor
      */
      public TVChannel (String name, int length, int day, String start, int year)
      {
          this.name=name;
          this.length=length;
          this.day=day;
          this.start=start;
          this.year=year;
          comment=" ";
      }
  
      public void changeDay(int newday){day=newday;}
      public void changeStart(String start){this.start=start;}
      public String giveName(){return name;}
      public int giveLength(){return length;}
      public int dajDay(){return day;}
  
      public String toString (){return name + " " + length + ":" + start + ":" + year;}
  }
  </code></pre>
  
  <p>And another one is:</p>
  
  <pre><code>public class Quiz extends TVChannel
  {
      private String author;
      private String host;
      public String giveHost(){return host;}
  }
  </code></pre>
  
  <p>So I'm trying to make TVChannel a superclass here. But when I compile Quiz, error message appears.</p>
  
  <blockquote>
    <p>Constructor TVCHannel in class TVChannel cannot be applied to given
    types.
    required:java.lang.String,int,int,java.lang.String,int,java.lang.String,java.lang.String.
    found:no arguments actual and formal argument lists differ in length</p>
  </blockquote>
  
  <p>Never had this problem in class before. </p>
  
  <p>I tried solving it like this:</p>
  
  <pre><code>public Quiz(String name, int length, int day, String start, int year) 
  {
      super(name, length, day, start, year);
  }
  </code></pre>
  
  <p>But then I get this:</p>
  
  <blockquote>
    <p>error: invalid method declaration; return type required?</p>
  </blockquote>
  
  <p>with Public Quiz. </p>
  
  <p>Why is Java mistaking a constructor for a method?</p>