CPSC170 Lecture 5

Inheritance

Class and Module Files

In-Class Activity

The file inheritance_weirdness.py linked above defines two dob object, similar to lab yesteray. Draw a picture of the object how it exists in memory. Given your picture, does the behavior of the code make sense?