is _init_ a constructor? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

is _init_ a constructor?

as per the example it seems it's a constructor?

29th Oct 2016, 12:28 AM
Shekhar Bahuguna
Shekhar Bahuguna - avatar
1 Answer
0
__init__ is used to define a constructor method
29th Oct 2016, 12:03 PM
Brian