Created
March 21, 2012 17:57
-
-
Save sakal/2150300 to your computer and use it in GitHub Desktop.
This file contains 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 __init__(self): | |
self._label() | |
def _label(self): | |
self.show("A::_label") | |
def show(self, msg): | |
print msg | |
class B(A): | |
def __init__(self): | |
A.__init__(self) | |
def _label(self): | |
self.show("B::_label") | |
o=B() | |
# B::_label |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment