access modifier in python || types of access modifier in python - public, private and protected

Опубликовано: 27 Март 2026
на канале: Budelkhand Education
94
2

Lecture notes - https://www.t.me/bundelkhand_education

hello friends in this video we will discuss about most important concept of object oriented programming in access modifier or access specifier. In python access specifier are naming convention of class data member like member method, member variable etc. name of data member define the uses or limits of data member can use within class and outside of class.
their three types of specifier in python
1. public
2. protected
3. private

Public - If we declare public member of a class which we can use anywhere in the whole program using object. by python class members are public.

Protected - (make member protected use _ (single underscore)) - If we declare protected member of a class, we can accessible within the class and derived class.

Private (make member is private use __ (double underscore) - If we declare private member of a class, we can only only accessible within the class.