Design Pattern Examples
Overview of object-oriented design patterns
proxy_interface.py
Go to the documentation of this file.
6
7from abc import ABC, abstractmethod
8
9
10
14class IWorkByProxy(ABC):
15
16
22 @abstractmethod
23 def DoWork(self, someArgument : str) -> str:
24 pass
25
Represents what can be done on the proxy object.
str DoWork(self, str someArgument)
Does some work on the given argument and returns a new string.