feat: add Chargeable and Refuelable interfaces

This commit is contained in:
2026-04-25 03:04:04 +03:30
parent 19d466ccec
commit 9a6ba5f958
4 changed files with 16 additions and 2 deletions
+3 -1
View File
@@ -11,7 +11,9 @@ package org.example.model;
* Reset fuelLevel to 100
*/
public class GasCar extends Car {
import org.example.behavior.Refuelable;
public class GasCar extends Car implements Refuelable {
private double fuelLevel;
private String fuelType;