« All Events
6 PM – Intro To Java
August 24, 2021 @ 6:00 pm - 7:00 pm
Homework
- Create a new class SlowDriver.java . This class should inherits from Driver class. Override the timeInMinuteToMakeTheTrip method so it will take 3 times longer during rush hour.
- Create a new class NewYorkTaxiDriver.java. This class should inherits from Driver class. Override the timeInMinuteToMakeTheTrip method so it will disregard the rush hour.
- Change initializeDrivers() method to change Amber from Driver into NewYorkTaxiDriver and Brandon into SlowDriver.