To inherit a class called Car to define a derived class call

To inherit a class called: Car to define a derived class called: Sedan, what will be the first statement in class Sedan? ANS: An interlace has been written, you would like to assign a name called: AirPlan, what should be the interface file name? ANS: To implement an interface called: Car, for a class called: Truck, what will be the first statement in class Truck? ANS:

Solution

1) To inherit a class called: Car to define a derived class called: Sedan, what will be the first statment in class Sedan?

ANS: class Sedan extends Car

2) An interface has been written, you would like to assign a name called: AirPlan, what should be the interface file name?

ANS: interface AirPlan

3) To implement an interface called: Car, for a class called: Truck, what will be the first statment in class Truck?

ANS: class Truck implements Car

 To inherit a class called: Car to define a derived class called: Sedan, what will be the first statement in class Sedan? ANS: An interlace has been written, yo

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site