Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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