C++ Language Multiple Choice Questions and Answers - 2

Question: 6

Which of the following is not true?

(A) Destructors cannot be overloaded

(B) Constructor can have parameters

(C) Constructor is executed automatically

(D) Constructor cannot be Overloaded

Ans: D

Constructor cannot be Overloaded

Question: 7

Which of the following is false?

(A) Constructor and member function have same name

(B) Class and destructor have same name

(C) Class and constructor have same name

(D) Constructor and destructor have same name

Ans: A

Constructor and member function have same name

Related Questions