Back to quizzes
Constructors & Destructors Quiz
Java / Loops | Medium | 15 questions
Question 1 of 15
4 free questions left
What is the primary purpose of a constructor in C++?
A
To initialize an object
B
To destroy an object
C
To define a class
D
To manage memory