Created
October 20, 2016 19:54
-
-
Save yaki29/204536ac537be5d0558e86daa41cdd91 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 Base(object): | |
def __init__(self): | |
print "Base created" | |
class ChildA(Base): | |
def __init__(self): | |
Base.__init__(self) | |
class ChildB(Base): | |
def __init__(self): | |
super(ChildB, self).__init__() | |
ChildA() | |
ChildB() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment