Created
February 10, 2017 22:31
-
-
Save seth10/ac97d6fd6e972bee6b48a433d52ec287 to your computer and use it in GitHub Desktop.
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 A: | |
def __init__(self, param1): | |
print "Class A recieved a param1 of", param1 | |
class B(A): | |
def __init__(self, param1, param2): | |
super().__init__() | |
print "Class B for param1", param1, "param2", param2 | |
#a = A(111) | |
b = B(1, 2) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment