English

Which of the following constructor is executed for the following prototype? add display( add and); // add is a class name

Advertisements

Question

Which of the following constructor is executed for the following prototype?
add display( add &);     // add is a class name

Options

  • Default constructor

  • Parameterized constructor

  • Copy constructor

  • Non-Parameterized constructor

MCQ
Advertisements

Solution

Copy constructor

shaalaa.com
  Is there an error in this question or solution?
Chapter 14: Classes and objects - Evaluation - Section – A [Page 247]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 14 Classes and objects
Evaluation - Section – A | Q 8. | Page 247
Advertisements
Share
Notifications



      Forgot password?
Use app×