Encapsulamento: público, protegido e privado (Parte 1) - Curso Python POO: Aula 10

Na Aula 10 de Python, você vai entender de forma prática como funciona o encapsulamento dentro da programação orientada a objetos e o mais importante: como o Python trata isso de um jeito completamente diferente de outras linguagens como Java e C#.

🕒 Assuntos abordados na Aula:

00:00 - Encapsulamento
00:27 - Perigo dos atributos públicos
01:10 - O que é atributo protegido (_underline)
02:10 - O que é atributo privado (__duplo underline)
03:20 - Diferença entre teoria e prática em POO
04:00 - Python NÃO segue visibilidade rígida
05:00 - Filosofia "Consenting Adults" (adultos consentindo)
06:30 - Convenções ao invés de regras
08:00 - Como Python trata acesso aos atributos
09:30 - Nomenclatura correta no Python (_ e __)
11:00 - Name Mangling explicado
13:00 - Criando atributos público, protegido e privado
15:00 - Testando na prática (código real)
17:00 - Problema com atributos protegidos sendo alterados
19:00 - Criando atributos “falsos” sem perceber
21:00 - Como acessar atributos protegidos corretamente
23:00 - Acessando atributos privados (mesmo sendo “proibido”)
25:00 - Por que isso é considerado errado na prática
27:00 - Filosofia Python na prática
29:00 - Boas práticas e erros de programador iniciante
31:00 - Conclusão da aula
32:00 - Próxima aula: Properties (getters e setters)

Seja membro deste canal e ganhe benefícios:
https://www.youtube.com/channel/UCrWvhVmt0Qac3HgsjQK62FQ/join

Acompanhe o módulo 1 do Curso de Python
== https://youtube.com/playlist?list=PLHz_AreHm4dlKP6QQCekuIPky1CiwmdI6&si=2vA5CAXxVCFFGFn6

Acompanhe o módulo 2 do Curso de Python
== https://youtube.com/playlist?list=PLHz_AreHm4dk_nZHmxxf_J0WRAqy5Czye&si=Ib8gp0Y5HbIGo4ju

Acompanhe o módulo 3 do Curso de Python
== https://youtube.com/playlist?list=PLHz_AreHm4dksnH2jVTIVNviIMBVYyFnH&si=_LooOSV_sgW9Qdcu

Acompanhe o módulo 4 do Curso de Python
== https://youtube.com/playlist?list=PLHz_AreHm4dn_RXXoa3Ameh77f95Hgwv3&si=lEB9NW78JoxTLhhJ

Siga nosso canal de Cortes:
== Acesse: @CursoemVideoCortes

Ouça o nosso Podcast Experience:
== https://youtube.com/playlist?list=PLHz_AreHm4dlAL49NfFvf7lUP2jrcMlYQ&si=m9MdtJHSUKUwoPmN

Curso em Vídeo
Seja um apoiador: http://cursoemvideo.com/apoie
Doe Bitcoins: 18A9Se4FK2hSsDT7xZ7n5FdRQ47WCjcftw
Site: http://www.cursoemvideo.com
YouTube: http://www.youtube.com/cursoemvideo
Facebook: http://www.facebook.com/cursosemvideo

Apoio institucional
FAETEC: https://www.faetec.rj.gov.br

Patrocínio
HOSTNET: https://www.hostnet.com.br
ESTUDONAUTA: https://www.estudonauta.com
GAFANHOTOS: https://cursoemvideo.com/apoie

#PythonPOO #CursoPython #OrientacaoaObjetos Receive SMS online on sms24.me

TubeReader video aggregator is a website that collects and organizes online videos from the YouTube source. Video aggregation is done for different purposes, and TubeReader take different approaches to achieve their purpose.

Our try to collect videos of high quality or interest for visitors to view; the collection may be made by editors or may be based on community votes.

Another method is to base the collection on those videos most viewed, either at the aggregator site or at various popular video hosting sites.

TubeReader site exists to allow users to collect their own sets of videos, for personal use as well as for browsing and viewing by others; TubeReader can develop online communities around video sharing.

Our site allow users to create a personalized video playlist, for personal use as well as for browsing and viewing by others.

@YouTubeReaderBot allows you to subscribe to Youtube channels.

By using @YouTubeReaderBot Bot you agree with YouTube Terms of Service.

Use the @YouTubeReaderBot telegram bot to be the first to be notified when new videos are released on your favorite channels.

Look for new videos or channels and share them with your friends.

You can start using our bot from this video, subscribe now to Encapsulamento: público, protegido e privado (Parte 1) - Curso Python POO: Aula 10

What is YouTube?

YouTube is a free video sharing website that makes it easy to watch online videos. You can even create and upload your own videos to share with others. Originally created in 2005, YouTube is now one of the most popular sites on the Web, with visitors watching around 6 billion hours of video every month.