I saw the following code, but I don't understand the rule for virtual function that appears in two bases
Could anyone explain it for me, thanks.

class Base1:
    def amethod(self):
       print "Base1"

class Base2(Base1): pass

class Base3:
    def amethod(self):
       print "Base3"

class Derived(Base2, Base3): pass

aninstance = Derived()

aninstance.amethod()
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to