If you have any object-oriented programming Have you heard about it in language
So if you know about the constructor If you don't know, I'd like to tell you
That constructors help in creating an object sometimes Sometimes we want to create objects by passing some arguments.
And in such a situation, constructor some initialization Helping us to do
What exactly is syntax what is __InitDenderMethod Everything will be seen in this video
Today today today today today today today today today today today today today today today today today today today today today today today today today today today today Today today today today today today today today today today today today today today today today today today today today today today today today today today today today today today today today
That way of doing Parasana is fine to wake you up, but I am going to you And I will tell you the better way what I did before I said
Take the name Harry and we created Occupation And I said take it, the developer is fine.
And after this one we def By doing info inside this class
Make sure you stay inside this class when it If you are making a method, then this indentation is necessary.
Then the function's indexation will come again automatically so I will I'll print an F string on you and I'll say
that self.name and I would do is a self.occ is fine and Worldwide I have to give myself here
Assuming this one rule, you will follow any method you will write in the class World I have to give me an F to this you will write any method you will write
So self.arg. It's okay when you want If you call self.arg. No need to give
But here's self.arg. Give when you have to give If you are defining your method not of class, then it is fine.
I will tell you that I have written a is equal to the person here is fine and if among you Many people are coming to Java C++, so we don't need to enter new keywords in Python.
You can go straight from one one one one one one one one one one one one one one One One One One One One One One One One One One One One One One One One One One One
Big we talked about this I did it but admit that I wasn't the only one
I want to change my name I want to do Divya and Divya
Who is Divya let me tell you who is the one Mint Divya HR is fine Divya
You should name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya Name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya
If you are named Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name
Name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya Name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya name Divya
Hey common person has come here it means one The constructor is calling whenever I am creating an object
Will I create another object named B then there will still be a call Let's Fide out goods I don't know if it will happen or not
Let's fide out like yes buddy Have you seen this call both times
Ok hey aayi aam persan he aai Tell me the meaning of the common man
This means that Hey Aai Mango Person means which is this method
This call is happening every time I Am creating a new object out of this person class
Okay, you understand that you are big man, so we have given the person class Made here and you can see it here
That here I am a person was printed on the console when we wrote Person Class When you made it, it means that this method
So it will always be invoke whenever you want to create an object Would I like to take advantage of this matter self.name is equal to name
And self.occ is equal to OCC or can I work I do self.name is equal to n and I do it
I wrote this for next. I wanted to write n, I do O and what is n and O are n and O two arguments Which I passed here is fine, so what will I do I will say Abar?
And what is Hari a lazy developer and what is Divya? Divya? Who is a costly HR who is a costly HR who can go to office at five o'clock It reaches and stays there till five o'clock in the evening, even after that, he stays there, Gabhi Ghabhi. Now look here, Hari and I am the developer.
For five o'clock your five o'clock your five o'clock for your five o'clock your five For your five o'clock your five o'clock for your five o'clock for your five o'clock for five o'clock
For your five o'clock your five o'clock for your five o'clock for your five o'clock your For five o'clock your five o'clock for your five o'clock your feet for your five o'clock
One node like we did in Info Now let me show you one thing
Suppose I write here A is single I will show you these facts by doing it with C.
I can write here this one Person and I will run it like that.
If I run it like that Look what he's saying brother
Not the init method, these two positional arguments NNO is understanding what this NNO is
I am mistaking it now if I make one each one one one one one one one one one one Ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek ek
And you will think that man I passed three arguments Python Why is Jute speaking Brother Python is not speaking Jute
Okay, Jute you will say if you ask me After passing three yes it happens alright this world is like this
If a self-first argument is being passed automatically, then give me a pass to lose Just the way I did you, one Harry, one developer. Now this is the rule alright.
Why was such a rule made? Just think if I have to pass it again here But if it's happening automatically, it's good or okay, so you guys should keep this thing in mind.
Just think if I have to pass one Harry, one developer to you again. It's good here, right If you are passing again, he falls here, nor is he passing again, then he falls here nor is passing it again.
If so don't you think so I have N N Oz It was written earlier that you don't care
But go to Parter Go One Parter Go One Parter Go One Parter Go One Parter Go One Parter Go One Parter Who One Parter Go who go to one parter who goes one parter who goes one parter who goes one parter who goes one parter who goes one parter which one
Go to Parter Go One Parter Go One Parter Go One Parter Go One Parter Go One Parter Go One Parter Go One Parter Who Go Go to one parter that goes one parter who goes one parter who goes one parter who goes one parter that goes one parter which goes one parter
Given who is printing it whenever a Object is created of that class then
There is a defold constructor because it is from an argument I am not taking it so that you guys understand these things.
Make you big, to make you big, to make you bigger, to make you bigger, to make you bigger To make you big, to make you bigger, to make you bigger, to make you bigger or you bigger