/
spirzen
/
it-code-examples
Обзор
Документация
Войти
/
spirzen
/
it-code-examples
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/python/code-407-113-016/main.py
33 строки
705 B
Spirzen
Code migration pack
09 июн 2026, 01:41
09 июн 2026, 01:41
cebc284
Код
Авторство
О чём код?
# Python (хороший пример) class IPrinter: def print(self, document): pass class IScanner: def scan(self, document): pass class IFax: def fax(self, document): pass class ICopy: def copy(self, document): pass class SimplePrinter(IPrinter): def print(self, document): print(f"Printing: {document}") class AllInOneDevice(IPrinter, IScanner, IFax, ICopy): def print(self, document): print(f"Printing: {document}") def scan(self, document): print(f"Scanning: {document}") def fax(self, document): print(f"Faxing: {document}") def copy(self, document): print(f"Copying: {document}")