Is there a way to 'mask out' inherited methods?

Bill Dozier billdozier at hotmail.com
Fri May 3 11:09:32 EDT 2002


cimarron+google at taylors.org (Cimarron Taylor) wrote in message news:<29e28c51.0205021931.4e698a76 at posting.google.com>...
> Do you really need to inherit? 

Exactly. Inheritance is for an "is-a" relationship, what you have is
an "is-implemented-as-a". A vector is not a list, you are merely
implementing it with one. This calls for composition, not inheritance.



More information about the Python-list mailing list