American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python OOP – Darin

January 28 @ 7:00 pm - 8:00 pm

What We Did Today:

  1. Continued the monster inheritance project, implementing inheritance for the Dragon class

Homework:

In your MonsterInheritance project….

"""
Homework:

Create the Hydra and Goblin classes, and make them inherit from the Monster class. Refer to Dragon to see how this is done.

Make the Hydra immune to water, but weak to fire (receives double damage)
note: you have to override the method from the parent class (replace get_damaged_by_magic)

Make the goblin weak to all magic types (receives double damage)

Note: you have to change the class you use to create these monsters in preadd_monsters inside of main.py
"""

Notes:

You can contact me at ddjapri@ayclogic if you have any questions!

Details

Date:
January 28
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights