Skip to content

Instantly share code, notes, and snippets.

@jonascheng
Last active June 9, 2019 04:54
Show Gist options
  • Save jonascheng/094843e0adbd2c6735f528de44d83934 to your computer and use it in GitHub Desktop.
Save jonascheng/094843e0adbd2c6735f528de44d83934 to your computer and use it in GitHub Desktop.
SOLID-BirdClass
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