So here I have a very simple class called Hello.
And in this class I have method call init and I'm just instantiating this class and creating an object. out of this Hello class.
Now the first question which may arise is what I have.
I don't want to use this self keyboard.
You can see that I can see that there is a red squiggly line appears here which means an error.
And this we can also see when we run the program.
So when we run the program it's going to give us this error.
It says it takes zero arguments but given one.
Now you may ask why it's saying that we have given one argument to the initialization of this hello
class.
So as I said in the last video that self is automatically parsed . when we initialize a class and that's
why it says that one argument is given.
But in init take zero argument because here we haven't given any argument inside these parenthesis.
So self is absolutely important.
So you need to give the self now the second question you may ask is can I create multiple init method
inside the class.
So let's see if it's possible or not.
So here I'm going to give this pass keyboard which means that this in that method is an empty method.
**************************************************************************
please like and follow us in Facebook and Instagram.
facebook: / technologytv
Instagram: / heikhamsingh
Twitter: / hanandkumarsing