Skip to content

Commit 58b5dad

Browse files
committed
ciado e removido atributo dinãmico do tipo Pessoa.
1 parent 945b918 commit 58b5dad

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

oo/pessoa.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,11 @@ def cumprimentar(self):
2727

2828
for filho in maia.filhos:
2929
print(filho.nome)
30+
31+
maia.sobrenome = 'Ramalho'
32+
print('Nome completo', maia.nome, maia.sobrenome)
33+
34+
del maia.filhos
35+
36+
print(maia.__dict__)
37+
print(fabiano.__dict__)

0 commit comments

Comments
 (0)