« All Events
3 PM – Python Object Oriented Programming – Sebastian
September 30, 2023 @ 3:00 pm - 4:00 pm
Today We Did
- Continued learning about inheritance fundamentals
- Worked through monster system project
- Completed Monster parent class
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Please submit your homework to the corresponding project’s folder in your Google Drive
- Homework: Begin creating the Dragon class in our MonsterSystem project.
- Inside the file “dragon.py”, create the class “Dragon” which will inherit our “Monster” class.
- Override the Dragon class’s constructor and make it only take in 2 parameters: health, and max_attack (don’t take in species anymore)
- Call the parent class’s constructor (hint: How can we call methods from a class’s parent?)