A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/326337.html below:

Overloading __init__ & Function overloading

Overloading __init__ & Function overloading Overloading __init__ & Function overloadingMichael Hoffman cam.ac.uk at mh391.invalid
Fri Sep 30 10:15:27 EDT 2005
Larry Bates wrote:

> class myclass(baseclass):
>     def __init__(self, arg):
>         #
>         # This method gets called when I instantiate this class.
>         # If I want to call the baseclass.__init__ method I must
>         # do it myself.
>         #
>         baseclass.__init__(arg)

This is an example of polymorphism generally, not overloading.
-- 
Michael Hoffman

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4