0

What does __init__ mean?

14th Aug 2016, 10:55 AM
Farid Rifaie
Farid Rifaie - avatar
5 odpowiedzi
+ 6
it's just a standard name for a method that allow you to istantiate an object of a certain class. Technically is the "Constructor" of a class
14th Aug 2016, 3:49 PM
Alessandro Censi
Alessandro Censi - avatar
+ 2
This is a special type of method in a class. This method is called constructor When an instance or class is created then this method is invoked first. Mainly used to initiate the fields or variables within the class
23rd Aug 2016, 11:29 PM
Sohan Singh Rajpurohit
+ 1
its a constructor which is automatically called when you create a object of a class.
18th Aug 2016, 7:13 AM
Himanshu Mishra
+ 1
it's the constructor method
29th Oct 2016, 12:39 AM
Shekhar Bahuguna
Shekhar Bahuguna - avatar
0
it is a constructor for the given class
20th Aug 2016, 9:44 AM
kaushik rk
kaushik rk - avatar