0:00
If you have any object-oriented programming Have you heard about it in language
0:03
So if you know about the constructor If you don't know, I'd like to tell you
0:07
That constructors help in creating an object sometimes Sometimes we want to create objects by passing some arguments.
0:13
And in such a situation, constructor some initialization Helping us to do
0:17
What exactly is syntax what is __InitDenderMethod Everything will be seen in this video
0:22
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
0:53
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
1:01
Take the name Harry and we created Occupation And I said take it, the developer is fine.
1:09
And after this one we def By doing info inside this class
1:13
Make sure you stay inside this class when it If you are making a method, then this indentation is necessary.
1:17
Then the function's indexation will come again automatically so I will I'll print an F string on you and I'll say
1:24
that self.name and I would do is a self.occ is fine and Worldwide I have to give myself here
1:35
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
1:45
So self.arg. It's okay when you want If you call self.arg. No need to give
1:51
But here's self.arg. Give when you have to give If you are defining your method not of class, then it is fine.
1:57
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.
2:07
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
2:37
Big we talked about this I did it but admit that I wasn't the only one
2:41
I want to change my name I want to do Divya and Divya
2:47
Who is Divya let me tell you who is the one Mint Divya HR is fine Divya
2:53
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
3:25
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
3:55
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
4:26
Hey common person has come here it means one The constructor is calling whenever I am creating an object
4:33
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
4:40
Let's fide out like yes buddy Have you seen this call both times
4:44
Ok hey aayi aam persan he aai Tell me the meaning of the common man
4:48
This means that Hey Aai Mango Person means which is this method
4:54
This call is happening every time I Am creating a new object out of this person class
5:00
Okay, you understand that you are big man, so we have given the person class Made here and you can see it here
5:10
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
5:16
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
5:26
And self.occ is equal to OCC or can I work I do self.name is equal to n and I do it
5:38
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?
5:48
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.
6:18
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
6:48
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
7:18
One node like we did in Info Now let me show you one thing
7:22
Suppose I write here A is single I will show you these facts by doing it with C.
7:27
I can write here this one Person and I will run it like that.
7:33
If I run it like that Look what he's saying brother
7:37
Not the init method, these two positional arguments NNO is understanding what this NNO is
7:43
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
8:15
And you will think that man I passed three arguments Python Why is Jute speaking Brother Python is not speaking Jute
8:20
Okay, Jute you will say if you ask me After passing three yes it happens alright this world is like this
8:28
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.
8:45
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.
8:55
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.
9:25
If so don't you think so I have N N Oz It was written earlier that you don't care
9:29
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
9:59
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
10:29
Given who is printing it whenever a Object is created of that class then
10:35
There is a defold constructor because it is from an argument I am not taking it so that you guys understand these things.
10:41
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
11:11
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