Examveda

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

A. To initialize the attributes of an object when it is created

B. To define a method

C. To destroy an object

D. To define a class

Answer: Option A


Join The Discussion

Related Questions on Concept of Object Oriented Programs in Python