(Parte 4) Eletrônico, Smartphone com Mixin e a união de tudo até aqui

This commit is contained in:
Luiz Otávio
2022-11-19 19:11:29 -03:00
parent 28cc7f2ea4
commit f9026c6b39
2 changed files with 8 additions and 2 deletions

View File

@@ -9,3 +9,5 @@ Success: Galaxy S está ligado (Smartphone)
Error: iPhone está desligado (Smartphone)
Success: Galaxy S está ligado (Smartphone)
Error: iPhone está desligado (Smartphone)
Success: Galaxy S está ligado (Smartphone)
Error: iPhone está desligado (Smartphone)

View File

@@ -1,3 +1,7 @@
conta_1 = ((1 + 1) ** (5 + 5))
from eletronico import Smartphone
print(conta_1)
galaxy_s = Smartphone('Galaxy S')
iphone = Smartphone('iPhone')
galaxy_s.ligar()
iphone.desligar()