inheritance
yagnesh
yagnesh at live.com
Thu Apr 5 13:26:33 EDT 2012
Chris Angelico <rosuav at gmail.com> writes:
> On Fri, Apr 6, 2012 at 2:50 AM, yag <yagnesh at live.com> wrote:
>>
[snipped 19 lines]
> In each case, you are overriding the foo() method, so your instance
> will only execute the last one. If you want to chain to the others,
> you need to write your methods to do so - which is what you've done
> with __init__.
>
> Hope that helps!
Yes it does. thank you a lot.
--
YYR
More information about the Python-list
mailing list