title: Java. Implicit super constructor Employee() is undefined. Must explicitly invoke another constructor
body: <p>Hello I'm new to Java, I'm getting this error in my production worker class. My Production worker constructor says explicitly invoke another constructor. I don't know what to do?.</p>
  
  <pre><code>import java.util.Date;
  
  public class Employee
  {
        private String name, number;
        private Date date;
  
        public Employee(String name, String number, Date date)
        {
              setName(name);
              setNumber(number);
              setDate(date);
        }
  
        public void setName(String n)
        {
              name = n;
        }
        public void setNumber(String n)
        {
              number = n;
              // you can check the format here for correctness
        }
        public void setDate(Date d)
        {
              date = d;
        }
  
        public String getName()
        {
              return name;
        }
        public String getNumber()
        {
              return number;
        }
        public Date getDate()
        {
              return date;
        }
  }
  
  
  
  public class ProductionWorker extends Employee
  {
        private int shift;
        private double hourlyrate;
         // error is here (Implicit super constructor Employee() is undefined. Must explicitly invoke another constructor).
        public ProductionWorker(int shift, double hourlyrate)
        {
              setShift(shift);
              setHourlyPayRate(hourlyrate);
        }
  
        public void setShift(int s)
        {
              shift = s;
        }
        public void setHourlyPayRate(double rate)
        {
              hourlyrate = rate;
        }
  
        public int getShift()
        {
              return shift;
        }
        public double getHourlyPayRate()
        {
              return hourlyrate;
        }
  }
  </code></pre>