Adds python code (#7)

This commit is contained in:
Abhishek Singh Thakur
2022-10-13 19:54:41 +05:30
committed by GitHub
parent 8c24d0345a
commit 59d2d5acfb
19 changed files with 221 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
from abc import ABC, abstractmethod
class FlyableInterface(ABC):
@abstractmethod
def fly() -> None:
...

View File

@@ -0,0 +1,6 @@
from abc import ABC, abstractmethod
class FlyingBehaviourInterface(ABC):
@abstractmethod
def makeFly() -> None:
...

View File

@@ -0,0 +1,6 @@
from abc import ABC, abstractmethod
class SwimmableInterface:
@abstractmethod
def swim() -> None:
...