Python Programming Tutorial - Encapsulation

Опубликовано: 12 Февраль 2017
на канале: Amulya's Academy
91,732
1.3k

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


На этой странице сайта вы можете посмотреть видео онлайн Python Programming Tutorial - Encapsulation длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Amulya's Academy 12 Февраль 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 91,732 раз и оно понравилось 1.3 тысяч зрителям. Приятного просмотра!