Question

Which of the following is true about C++ destructors?

A Must have the same name as the class
B Are called automatically when an object goes out of scope
C Can have parameters
D Must return int
E Can be overloaded
Practice Next

Hey! Ask a query