polymorphism
Asun Friere
afriere at yahoo.co.uk
Wed May 14 00:33:12 EDT 2003
Carl Banks <imbosol at aerojockey.com> wrote in message
>
> The replies so far have ignored one significant aspect of Python
> polymorphism: unlike C++, it isn't tied to inheritance. So, there is
> no need to form class hierarchies just for the sake
>
In other words, polymorphism in Python relies on an object's
_interface_ rather than its _implementation_ (which is as it should
be). Hmm, I can feel an argument coming on that those statically
typed languages can't achieve true polymorphism ... nah better not go
there.
More information about the Python-list
mailing list