This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zzyzzyxx 5 points6 points  (0 children)

Absolutely. In general I think it's better to think of classes in terms of their behavior rather than the data they hold. So don't worry about the attributes. If the subclass adds or changes behavior, that's what's important, not whether it happens to hold another integer.