American Young Coder (AYC)

Loading Events

« All Events

  • This event has passed.

9 AM – Python OOP – Indo – Gamas

February 3 @ 10:00 am - 11:00 am

Today we did:
  1. We created child classes (or subclasses) for the Monsters, such as Dragon, Troll, and Golem.
  2. We made sure that the magic attack does not work if the species is immune to it using inheritance.
  3. We covered the practice final test.
Homework:
  1. Make sure to connect all the classes to the MonsterInheritance class.
  2. Make sure the troll class is correct (it should not be Dragon, that was a copy-and-paste error)
  3. To make sure that the program works, finally, in add_default_monster in MonsterInheritance, make sure to change all the Monsters with their own types. Since the Dragon, Troll, and Golem constructors all have only two parameters,  it should look something like this:

 

 

The program should be working now.

Finally, make sure to submit the practice final test a day before the class. This is worth 10% of your grade, so make sure you do your best.

 

If you have any questions, feel free to email me at joel@ayclogic.com or Mr. Gamas at gamas@ayclogic.com.

Details

Date:
February 3
Time:
10:00 am - 11:00 am
Verified by MonsterInsights