Home »
MCQs »
OOPs MCQs
When an object is created an initialization needs to be done which is automatically done by the ____ function?
55. When an object is created an initialization needs to be done which is automatically done by the ____ function?
- Constructor
- Destructor
- Friend
- Member
Answer: A) Constructor
Explanation:
When an object is created an initialization needs to be done which is automatically done by the constructor function, it constructs the value of the member class.