Last active
July 18, 2020 20:41
-
-
Save highsmallxu/9f680533f9033b94db354021db85ffbf 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 Dad: | |
def __init__(self): | |
self.eye_color = "blue" | |
self.hair_color = "black" | |
self.city = "Amsterdam" | |
def swim(self): | |
print("I can swim") | |
class Mum: | |
def __init__(self): | |
self.eye_color = "brown" | |
self.hair_color = "brown" | |
self.city = "Amsterdam" | |
def dance(self): | |
print("I can dance") | |
class Kid(Dad, Mum): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment