mirror of
https://github.com/robindhole/fundamentals.git
synced 2025-09-14 13:02:45 +00:00
Adds python code (#7)
This commit is contained in:

committed by
GitHub

parent
8c24d0345a
commit
59d2d5acfb
@@ -0,0 +1,6 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
class FlyableInterface(ABC):
|
||||
@abstractmethod
|
||||
def fly() -> None:
|
||||
...
|
@@ -0,0 +1,6 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
class FlyingBehaviourInterface(ABC):
|
||||
@abstractmethod
|
||||
def makeFly() -> None:
|
||||
...
|
@@ -0,0 +1,6 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
class SwimmableInterface:
|
||||
@abstractmethod
|
||||
def swim() -> None:
|
||||
...
|
0
python_code/oop/SOLID/bird/interfaces/__init__.py
Normal file
0
python_code/oop/SOLID/bird/interfaces/__init__.py
Normal file
Reference in New Issue
Block a user