Last active
August 29, 2015 14:09
-
-
Save hcosta/fbd532cdbee4b542bd1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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