Invoke a superclass method from a subclass constructor

Dave Angel davea at ieee.org
Tue Sep 13 21:31:08 CEST 2011


On 01/-10/-28163 02:59 PM, Kayode Odeyemi wrote:
>
> When an instance of a class is created, all codes within that instance block
> should be executed. That's my understanding of OOP.
>
I don't understand this phrasing at all.   Could you show a specific 
example of something that does not execute code you think should be 
executed?  I suspect you're just confused by things the interactive 
session is printing out, which are not part of the language, and work a 
bit differently.

DaveA




More information about the Python-list mailing list