__new__ e __init__ em classes Python

This commit is contained in:
Luiz Otávio
2022-11-19 19:09:44 -03:00
parent 09c205cf15
commit 28cc7f2ea4
2 changed files with 25 additions and 6 deletions

View File

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