« All Events
6:30 PM – Python OOP – Sebastian
July 10 @ 6:30 pm - 7:30 pm
Today we did
- Continue monster inheritance project
- Learn about inheritance
- Thursday 6:30PM class code: https://drive.google.com/drive/folders/1qlUjB3gRXHSK5kRzjKzDD2qIz-OqB2bK?usp=sharing
- AYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Please submit your homework into your Google Drive
- Homework:
- Override the constructor of Monster to only have 2 parameters: health, max_attack
- call the parent class’ constructor and pass in “troll”, health, max_attack
- Replace the else’s “self.health -= damage” with a call to parent class’ take_damage()