super schmuper
can someone tell me what is wrong with my super statement?
The problem is in the ITEmployee Class. I have bolded and underlined the error statement. The error states that it cannot find symbol SalariedEmployee constructor.I have also included a copy of the SalariedEmployee class constructor. If you need more info please let me know. Thanks.
publicclass SalariedEmployeeextends Employee
{
privatedouble weeklySalary;
/** Creates a new instance of SalariedEmployee */
public SalariedEmployee(String name, String address, String ssn,
String id,double ysalary,
double hours,int payrate,double weeklypay)
{
super(name, address, ssn, id, ysalary);
setWeeklySalary(ysalary);
/*
* ITEmployee.java
*
* Created on April 30, 2007, 11:59 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
/**
*
* @author P
*/
publicclass ITEmployeeextends SalariedEmployee{
private String degree;
private String certificates;
private String progLang;
/** Creates a new instance of ITEmployee */
public ITEmployee(String name, String address, String ssn,
String id,double ysalary,
double hours,int payrate,double weeklypay,
String aDegree, String aCert, String aProgLang)
{
[b][u]super(name, address, ssn, id, ysalary, weeklypay);[/u][/b]
degree = aDegree;
certificates = aCert;
progLang = aProgLang;
System.out.println("ITEmployee object has been constructed");
}
}

