Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
null created by frankcorneliusmartin -
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")
print("Child Class")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment