design-patterns/behavioral/command/command.py
Ruidy 459ddde228
Command (#16)
* doc: create documentation

* chore: put package in the right place

* doc: edit general doc

* add code example
2020-10-01 13:26:58 +02:00

11 lines
208 B
Python

from abc import ABC, abstractmethod
class Command(ABC):
"""
The Command interface declares a method for executing a command.
"""
@abstractmethod
def execute(self) -> None:
pass