The next part, which I'll be working on, is encapsulation.
Now supposing we have our square smiley and then yeah, we have happy that side.
We put this to see it around this you see how the hand area turns at 64 because we've modified a side
to it.
But many times we don't want this kind of direct modification of class attributes externally.
So what we could do is we could make this attribute private.
And to do that, we could add this double underscore before the variable name.
So that will make this private modify it whereby it's to be used again.
We have that around now we see from this that even after modifying this site, we will have the same
value for the area.
And that's because this side is taking the default value, which is this five here.
And so external modifications are now allowed.
And if we want to make this kind of external modifications, we could use a setter by setter would mean
we could have would define this set side function.
Which modifies the value of the site internally.
So we don't have to modify this site value externally, but now internally.
So yeah, we have this, it'll take this site, I will pass and you know, set the site.
Obviously we have the self that's an object class, it's an object method.
So we have that.
We have the site we can now modify.
Let's run this again, see that.
Now what we do now is we have happy that said side and run it and you see that it's modified.
So this is how we go about encapsulating.