American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

9 AM – Intro To Java

May 23, 2021 @ 9:00 am - 10:00 am

  1. We continued with Driver system
    1. We implemented a way where rushHour could reduce the driving speed of the driver by 75%.
    2. We implemented an override where rushHour could reduce the driving speed of NewYorkTaxiDriver only by 50%.
    3. We created a new class RacerNYCTaxiDriver which is derived from NewYorkTaxiDriver class and will not be affected during rushHour.
  2. Homework:
    1. Create Vehicle class which will have the following attributes
      1. String name
      2. boolean commercialVehicle
      3. int numOfPassenger
      4. create getters and setters for this class.
    2. Inside DriverSystem class create List<Vehicle> and add 4 Vehicles in the run method:
      1. name – Prius, commercialVehicle – false, numOfPassenger – 4
      2. name – TaxiSedan, commercialVehicle – true, numOfPassenger – 4
      3. name – TaxiMiniVan, commercialVehicle – true, numOfPassenger – 6
      4. name – TaxiFullSizeVan, commercialVehicle – true, numOfPassenger – 8
      5. name – MiniVan, commercialVehicle – false, numOfPassenger – 6
    3. There is no class next week on May 30 because of memorial day weekend.

Details

Date:
May 23, 2021
Time:
9:00 am - 10:00 am
Event Categories:
,
Verified by MonsterInsights