What is a Constructor?
A. A function called when an instance of a class is initialized.
B. A function that is called when an instance of a class is deleted.
C. A special function to change the value of dynamically allocated memory.
D. A function that is called in order to change the value of a variable.
Answer:A
What is a Constructor?
A. A function called when an instance of a class is initialized. B. A function that is called when an instance of a class is deleted. C. A special function to change the value of dynamically allocated memory. D. A function that is called in order to change the value of a variable.