Skip to content

Commit 2d08945

Browse files
committed
Criado e removido atributo dinâmico de objeto do tipo pessoa
1 parent e8f4fae commit 2d08945

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

oo/pessoa.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,10 @@ def cumprimentar(self):
1717

1818
for filho in mathias.filhos:
1919
print(filho.nome)
20+
mathias.sobrenome='Assis'
21+
del mathias.filhos
22+
del mathias.sobrenome
23+
del filho1.filhos
24+
print(mathias.__dict__)
25+
print(filho1.__dict__)
26+

0 commit comments

Comments
 (0)