Completed tasks and everything but no menu implemented. #1

Merged
Meraj merged 9 commits from develop into master 2026-05-18 23:24:49 +00:00
Showing only changes of commit 16f4df1165 - Show all commits
+10
View File
@@ -23,7 +23,17 @@ public class SportsCar extends GasCar {
this.zeroToHundred = zeroToHundred;
}
public boolean needsService(Vehicle v) {
return v.getMileage() > 5000;
}
public void performService() {
System.out.println("High-performance brake system checked");
}
public void showDetails() {
super.showDetails();
System.out.println("Acceleration time: " + this.zeroToHundred);
}
// TODO: Override showDetails()
// Call super.showDetails()
// Print acceleration time