forked from UNN/2026-rff_mp
14 lines
219 B
Python
14 lines
219 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class Observer(ABC):
|
|
|
|
@abstractmethod
|
|
def update(self, event):
|
|
pass
|
|
|
|
|
|
class ConsoleView(Observer):
|
|
|
|
def update(self, event):
|
|
print(f"[Observer] {event}") |