Final answer:
To accomplish the tasks, use 'extends' to specify inheritance, 'super' to call superclass methods, and pass arguments to superclass constructors.
Step-by-step explanation:
To specify that class PieceWorker inherits from class Employee, we use the keyword 'extends'. So the line of code would be:
class PieceWorker extends Employee;
To call superclass Employee's toString method from subclass PieceWorker's toString method, we use the 'super' keyword. Here is an example:
public String toString() {
return super.toString();
}
To call superclass Employee's constructor from subclass PieceWorker's constructor and pass three Strings representing the first name, last name, and social security number, we use the 'super' keyword along with the appropriate arguments. Here is an example:
public PieceWorker(String firstName, String lastName, String ssn) {
super(firstName, lastName, ssn);
}