C++ Constructors Question:
Download Questions PDF

If the copy constructor receives its arguments by value, the copy constructor would

A. call one-argument constructor of the class
B. work without any problem
C. call itself recursively
D. call zero-argument constructor

Answer:

Option C
call itself recursively

Download C++ Constructors Interview Questions And Answers PDF

Previous QuestionNext Question
Which of the following statement is correct?

A. A destructor has the same name as the class in which it is present.
B. A destructor has a different name than the class in which it is present.
C. A destructor always returns an integer.
D. A destructor can be overloaded.
Which of the following are NOT provided by the compiler by default?

A. Zero-argument Constructor
B. Destructor
C. Copy Constructor
D. Copy Destructor