posted 24 years ago
Member variables don't follow the same rules as methods. If you had two methods, one in the parent and one in the sub, and then called display which ran one of the two methods, it would run the method of the subclass. But in your example, you are calling a variable, so it will call the variable of the parent class. Static methods work the same way as class variables.
Bill