+ 2
What's the meaning of this constructor takes no arguments?
2 Respuestas
+ 1
It means that everytime an object of the class is created, the constructer is called. This constructor does not accept any variables or functions as its parameter. In layman's words, the constructor will have nothing inside its parentheses except for self keyword. Example: class my_class: def __init__(self): #constructor code goes here Here,the constructor __init__ takes no arguments. P.s refer stackoverflow.com for further doubts.
0
#Great explanation