American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

7 PM – Intro To Java – Gamas

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

Today We Do
  1. We learned about Java inheritance. We created Dragon class which extends from Monster class.
  2. We learned how to override Monster.doMagicDamage(String magicType, int damage) in Dragon class.
Homework
  1. Continue Monster Inheritance project by creating Troll and WaterGolem classes.
  2. These classes need to inherit from Monster class. This is very similar to Dragon class.
  3. In these classes, you need to override Monster.doMagicDamage(String magicType, int damage) method.
  4. Troll will be immune to earth magic attack (no damage done) and Troll will take only half damage from fire magic attack.
  5. WaterGolem will be immune to water magic attack (no damage done).

Details

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