Hi:
Why in super(Child,self).setVal(value) there is Child and self in super? Why 
the repetition? Or should it say Parent instead of Child?
In my understanding it should say Parent2 instead of Child since it refers to 
which parent to take the medthod from. In case of multiple inheritance it 
should state the class from which super will take the setVal method.
Please explain what Im missing here.
Thank you
Monika

class Paren2t():
def setVal(self, value):
self.value = value


class Child(Parent1, Parent2):
def setVal(self, value)
super(Child,self).setVal(value)

____________________________________________________________
legitfeed.com (Sponsored by Content.Ad)
10 Disturbing Things Your Nails Reveal About Your Health
http://thirdpartyoffers.netzero.net/TGL3241/57c4a6dd3b01026dd4006st03duc
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to