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
On this page of the site you can watch the video online Python Programming Tutorial - Encapsulation with a duration of hours minute second in good quality, which was uploaded by the user Amulya's Academy 12 February 2017, share the link with friends and acquaintances, this video has already been watched 91,732 times on youtube and it was liked by 1.3 thousand viewers. Enjoy your viewing!