Question: An abstract class Employee has two subclasses, Permanent and Temporary. The Employee class contains an abstract method named setType(). Before you can instantiate Permanent and

An abstract class Employee has two subclasses, Permanent and Temporary. The Employee class contains an abstract method named setType(). Before you can instantiate Permanent and Temporary objects, which of the following statements must be true?
a. You must code statements for the setType() method within the Permanent class.
b. You must code statements for the setType() method within both the Permanent and Temporary classes.
c. You must not code statements for the setType() method within either the Permanent or Temporary class.
d. You can code statements for the setType() method within the Permanent class or the Temporary class, but not both.

Step by Step Solution

3.52 Rating (192 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

b You must code sta... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!