Encapsulation bundles data (attributes) and methods together inside the wrapper called class.
Similar to capsules where different kind of medicines are are kept together inside the top cover, here data and methods are kept inside top cover called called "class".
To consume medicines inside capsule, first we need to uncover top layer. Similarly here, to access data and methods of class we need to uncover class by creating object for this.
Nesta página do site você pode assistir ao vídeo on-line What is encapsulation in object oriented programming ? duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário The Digital Folks 14 Maio 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 56,539 vezes e gostou 2.2 mil espectadores. Boa visualização!