American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

9 AM – Intro To Java – Gamas

July 30, 2022 @ 9:00 am - 10:00 am

Today We Did
  1. We continued with the Monster Inheritance project.
  2. We added codes in Dragon class to override magic damage so if a player attack Dragon with a Fire magic attack, then it will display a message saying “Dragon is immune to fire magic attack. No damage is done.”.
Homework
  1. Continue with Monster Inheritance project. Add Troll.java class and override doMagicDamage(String magicType, int damage) so when magicType is equal to “earth” it will display a warning message “Troll is immune to earth magic attack. No damage is done.”
  2. Inside MonsterInheritanceMain.java. Specifically inside initializeMonster, use Troll class when adding Troll to the map.
  3. Run the program and see if you attack Troll with earth magic if it display the above message.

Details

Date:
July 30, 2022
Time:
9:00 am - 10:00 am
Event Categories:
,
Verified by MonsterInsights