feat: add Chargeable and Refuelable interfaces
This commit is contained in:
@@ -11,7 +11,9 @@ package org.example.model;
|
||||
* Reset chargeLevel to 100
|
||||
*/
|
||||
|
||||
public class ElectricCar extends Car {
|
||||
import org.example.behavior.Chargeable;
|
||||
|
||||
public class ElectricCar extends Car implements Chargeable {
|
||||
|
||||
private int batteryCapacity;
|
||||
private double chargeLevel;
|
||||
|
||||
Reference in New Issue
Block a user