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
b You must code sta... View full answer
Get step-by-step solutions from verified subject matter experts
