Skip to content

Instantly share code, notes, and snippets.

@yaki29
Created October 20, 2016 20:02
Show Gist options
  • Save yaki29/71d7fea597a282ae7ceee417127febba to your computer and use it in GitHub Desktop.
Save yaki29/71d7fea597a282ae7ceee417127febba to your computer and use it in GitHub Desktop.
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