Encapsulation in Python Complete Explanation

Publicado el: 02 agosto 2024
en el canal de: 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


En esta página del sitio puede ver el video en línea Encapsulation in Python Complete Explanation de Duración hora minuto segunda en buena calidad , que subió el usuario US Code Academy 02 agosto 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 155 veces y le gustó 8 a los espectadores. Disfruta viendo!