inheriting from multiple superclasses : Class Inheritance « Class « Python
- Python
- Class
- Class Inheritance
inheriting from multiple superclasses
class A:
def foo(self):
print "foo called in A"
class B:
def foo(self):
print "foo called in B"
def bar(self):
print "bar called in B"
class C(A,B):
pass
Related examples in the same category