An abstract class Employee has two subclasses, Permanent and Temporary. The Employee class contains an abstract method
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 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.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: