Question: Given that Short and Integer extend Number directly, what type can be used to fill in the blank in the following class to allow it
Given that Short and Integer extend Number directly, what type can be used to fill in the blank in the following class to allow it to compile?

A. Object
B. Integer
C. Short
D. Number
E. None of the above
package band; interface Horn { public Integer play(); } abstract class Woodwind { public Short play() { return 3; } } } public final class Saxophone extends Woodwind implements Horn { public play() { return null; }
Step by Step Solution
3.26 Rating (161 Votes )
There are 3 Steps involved in it
In the given Java program you have an interface Horn with a method play that ... View full answer
Get step-by-step solutions from verified subject matter experts
