OOP / language design question

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Tue Apr 25 06:41:10 EDT 2006


cctv.star at gmail.com:
>I was wondering, why you always have to remember to call bases'
>constructors explicitly from the derived class constructor? Why hasn't
>this been enforced by the language?

Probably because the language doesn't know whether the subclass wants to
override its base class's constructor, or enhance it.

-- 
René Pijlman



More information about the Python-list mailing list