Question: An abstract class Employee has two subclasses, Permanent and Temporary. The Employee class contains an abstract method named setType ( ) . Before you can
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?
You must code statements for the setType method within the Permanent class.
You must code statements for the setType method within both the Permanent and Temporary classes.
You must not code statements for the setType method within either the Permanent or Temporary class.
You can code statements for the setType method within the Permanent class or the Temporary class, but not both.
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
