Q25
What is a constructor in C++?
A.
A function used to destroy objects
B.
A function used to create objects
C.
A function used to access class members
D.
A special member function that initializes objects
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board