American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Intro To Java – Private – Gamas

March 16, 2023 @ 5:00 pm - 6:00 pm

Homework
  1. Continue with Monster program.
  2. Use java inheritance so Troll monster has specific behavior.
    1. When Troll monster receive an “earth” magic attack, reduce the attack by half.
    2. When Troll monster receive a “fire” magic attack, say that Troll is immune to fire magic attack.
  3. Use java inheritance so Minotaur monster has specific behavior.
    1. When Minotaur is attacked by range attack, specifically using “arrow” weapon type, reduce the attack by half.
  4. Read 2 sections from this article https://blog.hubspot.com/website/encapsulation-java#:~:text=The%20private%20modifier%20is%20the,class%2C%20but%20only%20by%20subclasses. 
    1. What is Encapsulation in Java?
    2. Access modifier

Details

Date:
March 16, 2023
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights