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.
Sur cette page du site, vous pouvez voir la vidéo en ligne What is encapsulation in object oriented programming ? durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur The Digital Folks 14 mai 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 56,539 fois et il a aimé 2.2 mille téléspectateurs. Bon visionnage!