Skip to content

Instantly share code, notes, and snippets.

@jonascheng
Last active June 9, 2019 04:55
Show Gist options
  • Save jonascheng/69cfeb10e97d55b338dfe4eb383fd54d to your computer and use it in GitHub Desktop.
Save jonascheng/69cfeb10e97d55b338dfe4eb383fd54d to your computer and use it in GitHub Desktop.
SOLID-DoveEagleClass
class Dove(Bird):
def walk(self):
return 0.1
def fly(self):
return 10
class Eagle(Bird):
def walk(self):
return 0.5
def fly(self):
return 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment