trilha-python-dio icon indicating copy to clipboard operation
trilha-python-dio copied to clipboard

0205 poo encapsulamento

Open pouthergust opened this issue 1 month ago • 0 comments

Podemos ver em "Aplicando encapsulamento em Python" na segunda aula ("Recursos públicos e privados") que tornar um atributo privado em python existe apenas uma convenção, entretanto o python implementa o 'Name Mangling' para tornar o atributo inacessível de fora da classe


We can see on "Aplicando encapsulamento em Python", in the second class ("Recursos públicos e privados"), that making a property into a private is only a good practice, but Python got 'Name Mangling' to change the access to a property

pouthergust avatar Jan 12 '25 19:01 pouthergust