Encapsulation in Python Complete Explanation

Publié le: 02 août 2024
sur la chaîne: US Code Academy
155
8

In this video we discuss encapsulation in python.
Definition
Encapsulation refers to the bundling of data (attributes) and methods (functions)
that operate on the data into a single unit, called a class.

Access Modifiers
Public members (attributes or methods) are accessible from outside the class.
Protected members are prefixed with a single underscore (_). These members are intended to be accessed within the class and its subclasses.
Private members are prefixed with a double underscore (__). These members cannot be accessed directly from outside the class.


#pythonlearning
#pythan
#CodeWithHarry# USCodeAcademy


Sur cette page du site, vous pouvez voir la vidéo en ligne Encapsulation in Python Complete Explanation durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur US Code Academy 02 août 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 155 fois et il a aimé 8 téléspectateurs. Bon visionnage!