Question:Which of the following statements about constructors and destructors are true? 

A In a given class, constructors are always required to be defined, but destructors are not 

B Neither constructors nor destructors can take parameters 

C Constructors can take parameters, but destructors cannot 

D It is illegal to define a destructor as virtual 

E It is illegal to define a constructor as virtual 

F Both explicitly declared constructors and explicitly declared destructors are required in a class 

+ Answer
+ Report
Total Preview: 1704

Copyright © 2024. Powered by Intellect Software Ltd