Python Object Oriented Programming | Python Encapsulation| Access Modifiers. #5

preview_player
Показать описание
In this lecture you will learn about Python encapsulation and access modifiers in greater details.

Most programming languages has three forms of access modifiers, which are Public, Protected and Private in a class. Python uses '_' symbol to determine the access control for a specific data member or a member function of a class.

A Class in Python has three types of access modifiers and this video covers as following:

-- Public Access Modifier
-- Protected Access Modifier
-- Private Access Modifier
-- What are access modifiers give me an example?
-- What is super () in Python?
-- What is __ init __ in Python?
-- What is __ new __ in Python?
-- What is self in Python?

Рекомендации по теме
Комментарии
Автор

Lovely examples I found in this video on Encapsulation.

testsample
Автор

for beginners in python this lecture was very explanation

samikshayerawar
Автор

Thank you for the video! What is the conclusion/bottom line of not being able to access the Salary private variable "directly" by doing e.__Salary or e.__group, but rather make it accessible through a method (e.RevisedSalary())?

adityabansod
visit shbcf.ru