feat: add showDetails feature to vehicle

This commit is contained in:
2026-04-25 01:39:43 +03:30
parent fc0ee6222a
commit 19d466ccec
2 changed files with 4 additions and 0 deletions
@@ -30,4 +30,6 @@ public class GasCar extends Car {
// TODO: Implement refuel(double amount) // TODO: Implement refuel(double amount)
// Validate amount // Validate amount
// Cap at 100 // Cap at 100
// TODO: Override showDetails()
} }
@@ -35,4 +35,6 @@ public abstract class Vehicle {
" | Energy: " + getEnergyType() " | Energy: " + getEnergyType()
); );
} }
public abstract void showDetails();
} }