Q22
What is the purpose of the constructor (__init__ method) in a class in Python?
A.
It initializes the attributes of an object
AnswerB.
It defines a method
C.
It is a destructor
D.
It is a constructor
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board