First page Back Continue Last page Overview Text

Notes:


With this code, setting the class variable inside Customer affects Person and Employee as well, since class variables are shared throughout an entire inheritance hierarchy.

Class variables should generally be avoided, and definitely aren't appropriate for situations where parts of the hierarchy are independent.