Last active
June 9, 2019 04:54
-
-
Save jonascheng/094843e0adbd2c6735f528de44d83934 to your computer and use it in GitHub Desktop.
SOLID-BirdClass
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
import abc | |
class Bird(abc.ABC): | |
@abc.abstractmethod | |
def walk(self): | |
return NotImplemented | |
@abc.abstractmethod | |
def fly(self): | |
return NotImplemented |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment