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
AnswerB.
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