C++ Constructors Question:
Download Questions PDF

Which of the following never requires any arguments?

A. Member function
B. Friend function
C. Default constructor
D. const function


Option C
Default constructor

Download C++ Constructors Interview Questions And Answers PDF

Previous QuestionNext Question
Which of the following gets called when an object goes out of scope?

A. constructor
B. destructor
C. main
D. virtual function
A function with the same name as the class, but preceded with a tilde character (~) is called __________ of that class.

A. constructor
B. destructor
C. function
D. object