diff --git a/README.md b/README.md index e06e1cb..3ecf540 100644 --- a/README.md +++ b/README.md @@ -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