Question: package ics 1 2 5 _ example _ 0 2 ; public class Employee { / / total number of Employee objects created is stored
package icsexample;
public class Employee
total number of Employee objects created is stored in count
private static int count ;
private final String firstName;
private final string lastName;
initialize Employee, add to the count and
display the String indicating that constructor was called
public EmployeeString firstName, String lastName
this. FirstName firstName;
this. lastName lastName;
count;
public string getFirstName
return firstName;
public String getLastName
return lastName;
public static int getcount
return count;
public float calculatePay
return ;
end class Employee
package icsexample;
public class SalaryEmployee extends Employee
private final int paystep;
public SalaryEmployeeString firstName, String lastName, int payStep
superfirstName lastName;
this. paystep paystep;
@override
public float calculatePay
return the biweekly pay amount for the employee based on pay step
step amount paid
$
$
$
$
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
