Encapsulation in Python | Python Private Variable and Private Method | OOPs Concept | Advance Python

Опубликовано: 31 Октябрь 2024
на канале: GSS
40
2

In this video, you will learn Python Private Variable and Private Method.

Encapsulation in Python:

1. Encapsulation means wrapping data and the methods into one unit.
2. We can restrict access to methods and variables.
3. This prevents data from direct modification.
4. We denote private attributes using double underscore __.