fix: make comments clear and detailed

This commit is contained in:
2026-04-27 08:21:32 +03:30
parent e8aedb8354
commit 22fc28130e
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -25,6 +25,7 @@ public abstract class Car extends Vehicle implements Serviceable {
// TODO: Override getEnergyType() → return "Unknown" // TODO: Override getEnergyType() → return "Unknown"
// TODO: Override showDetails() // TODO: Override showDetails()
// Print brand, model, year, mileage, and number of seats
/* /*
* Implement Serviceable methods: * Implement Serviceable methods:
+2
View File
@@ -30,6 +30,8 @@ public class ElectricCar extends Car implements Chargeable {
// TODO: Override getEnergyType() → return "Electric" // TODO: Override getEnergyType() → return "Electric"
// TODO: Override showDetails() // TODO: Override showDetails()
// Call super.showDetails()
// Print battery capacity and charge level
// TODO: Implement charge(double amount) // TODO: Implement charge(double amount)
// Validate negative // Validate negative
+2
View File
@@ -34,4 +34,6 @@ public class GasCar extends Car implements Refuelable {
// Cap at 100 // Cap at 100
// TODO: Override showDetails() // TODO: Override showDetails()
// Call super.showDetails()
// Print fuel level and fuel type
} }
-1
View File
@@ -25,7 +25,6 @@ public class SportsCar extends GasCar {
} }
// TODO: Override showDetails() // TODO: Override showDetails()
// Print header
// Call super.showDetails() // Call super.showDetails()
// Print acceleration time // Print acceleration time
} }