feat: add showDetails feature to vehicle
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user