Created
March 21, 2017 12:09
-
-
Save frankcorneliusmartin/56b968a82a7711283c4b6d703ca82f9d to your computer and use it in GitHub Desktop.
null created by frankcorneliusmartin - https://repl.it/G6AZ/0
This file contains 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 __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