Created
June 9, 2019 05:03
-
-
Save jonascheng/4de227bbed1cd721831e5713fb22f864 to your computer and use it in GitHub Desktop.
SOLID-InheritedBirdClass-ISP
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 Dove(FlyableBird): | |
def walk(self): | |
return 0.1 | |
def fly(self): | |
return 10 | |
class Eagle(FlyableBird): | |
def walk(self): | |
return 0.5 | |
def fly(self): | |
return 50 | |
class Penguin(DisFlyableBird): | |
def walk(self): | |
return 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment