Created
October 20, 2016 20:02
-
-
Save yaki29/71d7fea597a282ae7ceee417127febba 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 Parent(object): | |
def printf(self): | |
print "This is a function of parent class\n" | |
class Child(Parent): | |
pass | |
dad = Parent() | |
son = Child() | |
dad.printf() | |
son.printf() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment