Multiple Choice
Which of the following should be virtual if a base class uses dynamic memory allocation?
A) the constructor
B) the copy constructor
C) the print function
D) the destructor
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q14: What is another name for a child
Q15: In the derived class definition, you list
Q16: A derived class pointer can point to
Q17: If you have a copy constructor in
Q18: Using virtual functions is also known as
Q20: If a base class has a non-virtual
Q21: You should make a function a virtual
Q22: If you define a function in the
Q23: A constructor of the base class is
Q24: The constructor for a class is inherited.