Which of the following constructor is used to create an object by initializing data members using an existing object?

199. Which of the following constructor is used to create an object by initializing data members using an existing object?

  1. Default constructor
  2. Dynamic constructor
  3. Copy constructor
  4. None of the above

Answer: C) Copy constructor

Explanation:

Copy constructor is used to create an object by initialize data members using existing object.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.