docs: update README.md
This commit is contained in:
@@ -65,19 +65,23 @@ Your task is to complete the implementation of the classes by finding the `TODO`
|
|||||||
- Complete the constructor using `super`
|
- Complete the constructor using `super`
|
||||||
- Override the `getEnergyType()`
|
- Override the `getEnergyType()`
|
||||||
- Override the `showDetails()`
|
- Override the `showDetails()`
|
||||||
|
- Implement `needsService(Vehicle v)` and `performService()` from the Serviceable interface
|
||||||
|
|
||||||
### 3. GasCar Class
|
### 3. GasCar Class
|
||||||
- Override `getEnergyType()`
|
- Override `getEnergyType()`
|
||||||
- Implement `refuel(double amount)` with validation
|
- Implement `refuel(double amount)` with validation
|
||||||
- Override `showDetails()`
|
- Override `showDetails()`
|
||||||
|
- Override `Serviceable.java` methods
|
||||||
|
|
||||||
### 4. ElectricCar Class
|
### 4. ElectricCar Class
|
||||||
- Override `getEnergyType()`
|
- Override `getEnergyType()`
|
||||||
- Implement `charge(double amount)` with validation
|
- Implement `charge(double amount)` with validation
|
||||||
- Override `showDetails()`
|
- Override `showDetails()`
|
||||||
|
- Override `Serviceable.java` methods
|
||||||
|
|
||||||
### 5. SportsCar Class
|
### 5. SportsCar Class
|
||||||
- Override `showDetails` to include specific Sports Car feature alongside the base class details
|
- Override `showDetails` to include specific Sports Car feature alongside the base class details
|
||||||
|
- Override `Serviceable.java` methods
|
||||||
|
|
||||||
### 6. VehicleInspector Class
|
### 6. VehicleInspector Class
|
||||||
- Complete the `inspect(Vehicle v)` method using `instanceof`
|
- Complete the `inspect(Vehicle v)` method using `instanceof`
|
||||||
|
|||||||
Reference in New Issue
Block a user