Vidyalelo
Python · Q10

Classes and Objects in Python

Programming · Python · question 10

Q10

What is the __init__ method used for in Python classes?

A.
It initializes the attributes of an object
Answer
B.
It defines a method
C.
It is a constructor
D.
It is a destructor

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board