Vidyalelo
Python · Q51

Concept of Object Oriented Programs in Python

Programming · Python · question 51

Q51

What is the primary purpose of a constructor in object-oriented programming?

A.
To initialize the attributes of an object when it is created
Answer
B.
To define a method
C.
To destroy an object
D.
To define a class

Answer: Option A

Solution

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