[Tutor] calling a superclass method after overriding it
Kent Johnson
kent37 at tds.net
Tue Sep 22 20:13:52 CEST 2009
On Tue, Sep 22, 2009 at 1:27 PM, Alan Gauld <alan.gauld at btinternet.com> wrote:
> I tend to prefer the explicit approach since it is explicit which
> class/method is getting called, but I suspect the preferred mechanism
> nowadays is to use super()
I prefer the older approach too, it is simple and explicit. super()
comes with a raft of complications (google "super considered harmful")
and AFAIK it is only really needed in the case of "diamond"
inheritance.
Kent
More information about the Tutor
mailing list