Skip to content

Instantly share code, notes, and snippets.

@hcosta
Last active August 29, 2015 14:09
Show Gist options
  • Save hcosta/fbd532cdbee4b542bd1c to your computer and use it in GitHub Desktop.
Save hcosta/fbd532cdbee4b542bd1c to your computer and use it in GitHub Desktop.
class A:
def hola(self):
print "Hola clase A"
def a(self):
print "Soy de A"
class B:
def hola(self):
print "Hola clase B"
def b(self):
print "Soy de B"
class C(B,A):
def hola(self):
print "Hola clase C"
def c(self):
print "Soy de C"
c = C()
c.hola()
class D(C,A,B):
pass
d = D()
d.hola()
d.a()
d.b()
d.c()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment