design-patterns/behavioral/command/command.py
2020-10-01 13:23:31 +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