MonsterInheritance
project. Created our Monster
class, Dragon
, and Troll
.Jul14_InheritanceHW.py
WaterGolem.py
.WaterGolem
that inherits from Monster
super()
to call the constructor, creating a Monster
that has Water Golem
as its species, and pass in health and max attack as parameters.receive_magic_attack
function.fire
attackMonster
Feel free to let me know if you have any questions — reach me at szhuang@ayclogic.com.