fix: add more details for bonus part

This commit is contained in:
2026-04-27 08:21:49 +03:30
parent 22fc28130e
commit 7eefa807a3
+8 -1
View File
@@ -118,7 +118,14 @@ Add a `HybridCar` class
- Create a `HybridCar` class that extends `Car`.
- It will need variables for both battery level and fuel level
- Implement `Refuelable` and `Chargeable` together
- (Optional) Override methods to manage both power sources (driving drains battery first, then gas)
- Service logic for HybridCar:
```
needsService(): return true if mileage > 10000
performService():
Print "Engine oil changed and battery system checked"
Reset fuelLevel to 100
Reset chargeLevel to 100
```
## Workflow
1. Fork the repository to your own Git account