Encapsulation encapsulation is one of the purposes of what will be objective oriented programming,
which enables us to hide the internal part of that object.
So developers get benefits as following easy to use and object without knowing what is inside the object.
Could it change?
Can be easily noticed and measured encapsulation provide us the mechanism of restriction, the access
of to some of the objects components we can access to data through special methods, getter and setter.
We will open our little notebook.
Let's go.
Let's open Jupyter notebook and code as follows.
We will create a class called my class class.
Then we will set our innocence and the parameters.
Yes, set age, self and name.
And if in the instance of the Class 2's ever Amitav self, the age x1 x1.
And finally, we will define the gate on a missile for the barometer.
Def get aids.
We then sell the AIDS.
Then we will assign an object to the class, which is name Sara equal to my class.
And what since the age of Sara, Sara,
Sara?
That's not that it's.
Forty.
Then, well, Brent, the age of Saddam, Brent.
Sara, don't get age.
This error, because we don't revere the self instance to the gates, are methods we should do that
self.
Then we will get 40.
Sara, the said it's.
Forty.
Sara, don't get it.
As you see, we can use theater and to get those missiles doing both and to get data to our class,
thank you for watching.
See you next lecture.