ShowMeDo: ‘Python for Math Teachers’ - Subclassing for Beginners (1 video)
Kirby’s third video is Subclassing for Beginners in his Python for Math Teachers series:
“Let’s define a simple Dog class and show how we make instances (dogs). Then let’s add a stomach attribute so our dogs can eat and poop (kids love scatology). It’s a dog eat dog world! Then we refactor the code to show how Dog and Monkey classes might both inherit from the Animal class.”
Create your own Python videos? You’ll find instructions here for how you can make your own videos in just 30 minutes.
If you want to embed this video on your blog or site, see our embedding instructions.
This is one of 122 videos in our Python tutorial section. Track new-video-announces with our video feed.