Hi.
Welcome back.
In this lecture we will talk about more advanced object oriented programming.
We know early in this uh.
Course the regular types of missiles which has self-insurance or any instance but not without any science
like missiles.
We will talk about today which are at glass missile and at static missiles.
We call them as decorators and we use them to make more readable and easy to read code.
Suppose we have glass called my glass definition Glass glass.
My glass deaf or def DNF or definition missile self retard.
Any sense is his self and the self add class method definition class missile.
Fearless return class missile is here and see a less static missile.
DIA F. static missile return.
Static missile is here.
Only without any innocence.
So what's the difference between regular and Atlas missile.
The difference that we can access KILL US state and object innocence or change them and regular missiles
but in at glass missile we can access and use the closest it only.
But not the object instance which is self we use the creator to make our code is live readable.
As I told you if we suppose that object equal Michaelis and object method will give us that instance
is here.
As a result of my class object that class method will give us less method is used.
Static object not static missile will give us a static method is each Michaelis that les mis sold Christmas
is here.
And this is about.
Of our class but a static method is not part of our class
as it.
Kent X is the object essence or is a class.
State my class static missile.
Michael is not a static missile it will give us uh we will get a static method is here.
My class will give us that.
My class is the main of my class or part of my class.
Michael has not missile when we try to run my class.
Miss.
We will get type error on our missile.
Had I missing one requirement required positional argument which is self
let's try another example for our uh lesson today.
Plus fruit.
Definition in it self and fruit self adult fruit equal fruit.
Deaf rubber.
Self return f fruit and self.
The truths and glass mislead.
Jeff citrus seedless innocence the tendency Liz Lemon and orange and tangerine plus method Jeff grabs
seedless Aniston's return Cialis green grabs and red grapes.
Static method def season return citrus fruit in winter wraps fruit in summer when we run from Citrus
we will get fruit lemon orange and tangerine fraud that gap's we will get green grapes and red grapes
but when we run the fruit that season we will get citrus fruit in winter and the reps fruit in summer.
So a static method at a static method is uh.
Apart from our fruit.
Class thank you for watching.
Hope you enjoy this lecture and understand.
Thank you again.
Bye bye.