American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Intro To Java – Gamas

April 21, 2022 @ 7:00 pm - 8:00 pm

Homework
  1. Continue on MonsterInheritance project
  2. Inside Monster.java, add a new method: doArrowDamage(int amount)
  3. Inside the method, reduce Monster.health by amount.
  4. Inside WaterGolem.java, override Monster.doArrowDamage(int amount). This is very similar to how you guys override Dragon.doMagicDamage(String magicType, int damage).
  5. Inside WaterGolem.doArrowDamage(int amount), just print Water Golem is not affected by arrow attack. No damage is done.

Details

Date:
April 21, 2022
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights