Skip to content

Instantly share code, notes, and snippets.

@seth10
Created February 10, 2017 22:31
Show Gist options
  • Save seth10/ac97d6fd6e972bee6b48a433d52ec287 to your computer and use it in GitHub Desktop.
Save seth10/ac97d6fd6e972bee6b48a433d52ec287 to your computer and use it in GitHub Desktop.
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