Question: Consider the following pseudo Java code. Which of these options is valid in Java? a. class Vehicle { . . . } class Car extends
Consider the following pseudo Java code. Which of these options is valid in Java?
| a. | class Vehicle { . . . } class Car extends Vehicle { . . . } class Boat extends Vehicle { . . . } class AmphibiousVehicle extends Car, Boat { . . . } | |
| b. | interface Vehicle { . . . } interface Car extends Vehicle { . . . } interface Boat extends Vehicle { . . . } interface AmphibiousVehicle extends Car, Boat { . . . } | |
| c. | class Vehicle { . . . } abstract class Car extends Vehicle { . . . } abstract class Boat extends Vehicle { . . . } class AmphibiousVehicle extends Car, Boat { . . . } | |
| d. | All of these above | |
| e. | None of these above |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
