Inheritance: One Class Built on Another

A subclass such as class Cactus(Plant) gets every attribute and method of the class it's built on, sets itself up with super().__init__(), replaces only the methods that work differently, and isinstance() tells which kind an object is.

By

Updated

Cheat sheet: Inheritance: One Class Built on Another
Category
Python
Level
Journeyman
Tags
Child Class, Inheritance (python), Method Overriding (python), OOP, Parent Class, Polymorphism (python), python, super()