Skip to content

Instantly share code, notes, and snippets.

@frankcorneliusmartin
Created March 21, 2017 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankcorneliusmartin/56b968a82a7711283c4b6d703ca82f9d to your computer and use it in GitHub Desktop.
Save frankcorneliusmartin/56b968a82a7711283c4b6d703ca82f9d to your computer and use it in GitHub Desktop.
null created by frankcorneliusmartin - https://repl.it/G6AZ/0
class Parent(object):
def __init__(self):
print(self.A() + self.B())
def A(self):
return 1
def B(self):
return 2
class Child(Parent):
def __init__(self):
super(Child, self).__init__()
def A(self):
return 3
print("Parent Class")
Parent()
print("Child Class")
Child()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment