Question about subclassing - version 2

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Fri Sep 8 03:51:41 EDT 2006


Frank Millman, just a short note, more expert people can give you
better answers. There aren't abstract classes in Python. They are all
concrete. You may have classes with undefined methods (they may raise
NotImplementedError).
Multiple inheritance isn't supported by Java and Ruby, but it is
supported by C++ and Python, so you can use it in Python.
There are also ways of mixing methods. You may define methods, and then
lists of methods to add to your classes.

Bye,
bearophile




More information about the Python-list mailing list