Question:Which of the following are true about class member functions and constructors? 

A A constructor can return values but a member function cannot 

B A member function can declare local variables but a constructor cannot 

C A member function can declare local variables but a constructor cannot 

D A constructor can declare local variables but a member function cannot 

E A member function can throw exceptions but a constructor cannot 

+ Answer
+ Report
Total Preview: 2191

Copyright © 2024. Powered by Intellect Software Ltd