Professional Documents
Culture Documents
Employees: Employee
Employees: Employee
import unit4.collectionsLib.*;
public class Employee
{
public static final double minsalary=20.1;
private String email;
protected String firstName;
protected String lastName;
public Employee(String name,String lastName){
this.firstName = name;
this.lastName = lastName;
}
import unit4.collectionsLib.*;
public class HourlyEmployee extends Employee
{
protected double rate;
protected int hour;
}
public double calcSalary()
{
return this.Expensesmobile+super.calcSalary();
}
public String toString()
{
return super.toString();
}
}
MAIN
}
}
Vehicles
MAIN
}
}
}