Overloading
Christopher Subich
csubich.spam.block at spam.subich.block.com
Fri Dec 9 13:49:16 EST 2005
Johannes Reichel wrote:
> Hi!
>
> In C++ you can overload functions and constructors. For example if I have a
> class that represents a complex number, than it would be nice if I can
> write two seperate constructors
>
> class Complex:
Please do note, if you want this for the exact use of a Complex class,
Python does have complex arithmetic built-in:
print (0 + 1j)
The other posted points are still valid (and generally applicable).
More information about the Python-list
mailing list