- This event has passed.
7PM – OOP Python – Latisha
March 8, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- Continued working on Monster Inheritance
Homework
- Make a new class called Troll in a file called troll.py and a new class called WaterGolem in a file called water_golem.py. They should both inherit from the Monster class. (HINT: should be similar to how we did the Dragon class)
- Troll is immune to earth magic, and WaterGolem is immune to water magic.
- Use these new classes in main.py’s load_monster method to replace the old troll and water golem.
If you have any questions, you can ask me at latisha@ayclogic.com.