Question: 10. Consider the following interface and class declarations. public interface Student {1 implementation not shown * } public class Athlete {1 implementation not shown *
10. Consider the following interface and class declarations. public interface Student {1 implementation not shown * } public class Athlete {1 implementation not shown * } public class Tennisplayer extends Athlete implements Student {/ * implementation not shown * /} Assume that each class has a zero-parameter constructor. Which of the following is NOT a valid declaration? (A) Student a = new Tennisplayer(); (B) Tennisplayer b= new Tennisplayer() ; (C) Athlete c= new Tennisplayer(); (D) Student d= new Athlete(); (E) Athlete e = new Athlete()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
