Python Programming Tutorial - Encapsulation
Автор: Amulya's Academy
Загружено: 2017-02-12
Просмотров: 91580
In this python programming video tutorial you will learn about encapsulation in detail.
In an object oriented python program, you can restrict access to methods and variables. This can prevent the data from being modified by accident and is known as encapsulation.There are two type access specifiers one is private and another is public.Public methods and variables can be accessible outside the class also.But we cant access private methods outside the class and private variables can be modified only inside the class.
Objects can hold crucial data for your application and you do not want that data to be changeable from anywhere in the code. Encapsulation is helpful in this case.Two underscore at the beginning of method or variable indicates that it is private.
For more free tutorials on computer programming
/ amulsacademy
twitter.com/AmulsAcademy
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: