(Parte 1) Mixins, Abstração e a união de tudo até aqui

This commit is contained in:
Luiz Otávio
2022-11-17 10:30:30 -03:00
parent 1a3f04fcaa
commit cb438453a2
2 changed files with 15 additions and 0 deletions

14
aula141/log.py Normal file
View File

@@ -0,0 +1,14 @@
# Abstração
class Log:
def log(self, msg):
raise NotImplementedError('Implemente o método log')
class LogFileMixin(Log):
def log(self, msg):
print(msg)
if __name__ == '__main__':
l = LogFileMixin()
l.log('qualquer coisa')

1
aula141/main.py Normal file
View File

@@ -0,0 +1 @@
from log import Log