Classes and Objects Lab 1

1. Superhero

  • Define a Human class. It should have attributes like name, age, gender, etc.
  • Define a Superhero class with Superhero methods like fly, shoot_web, etc. They also inherit from Humans
  • Instantiate several human objects
  • Instantiate several superhuman objects
  • Run a few methods on each

2. Car

  • Define a Car class. It should have attributes like max_speed, color, seating_material, etc.
  • Define a few classes for different car makes/models
    • For example define a Ferrari class with a high max_speed
    • These classes should inherit from the Car class
  • Instantiate several different cars objects