abstract class CAR
fuelUp () { // implemented }
/ \
interface SPORTER interface TRUCK
driveFast (); moveLoad ();
Is there a way in Java I can get a class ESTATE that has
- the implementation fuelUp of CAR
- and also must implement driveFast AND moveLoad?
Extending from multiple classes is not possible and making CAR an interface does not give me an implementation in CAR.
class ESTATE extends CAR implements SPORTER, TRUCK?fuelUp().