What is the use of _init_ ? When is it called? Explain with an example.
Answers
Answered by
0
init short for initialization. It is a constructor which get called when you make instance of the class and it is not necessary. But usually it our practice to write init method for setting default state of the object.
hope it will help you :-) :-) :-) :-)
by devsa thakur
Similar questions