Re: __init__() not called automatically
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: __init__() not called automatically

From: Sakesun Roykiattisak <sakesun@boonthavorn.com>
Date: Fri May 27 2005 - 03:49:18 CEST

Wow.. Andrew Koenig.. I found your name in many c++ books I read. Never
know you are hanging around in python python mailing-list.
(or perhaps python newsgroup, whatever it is)

Thanks for the explanation.

Andrew Koenig wrote:

>"Sakesun Roykiattisak" <sakesun@boonthavorn.com> wrote in message
>news:mailman.122.1117088782.18027.python-list@python.org...
>
>
>
>>Does c++ call base class constructor automatically ??
>>If I'm not wrong, in c++ you also have to call base class constructor
>>explicitly.
>>
>>
>
>In C++, if you don't call a base-class constructor (I am saying "a" rather
>than "the" because there might be more than one direct base class), it is
>called automatically with no arguments. The only case in which you must
>call it explicitly is if it will not accept an empty argument list.
>
>
>
>
Received on Thu Sep 29 16:14:41 2005