1.

Answer the question (i) and (ii) after going through the following class:class Interview{int Month;public:Interview(int y) { Month=y; }  //Constructor 1 Interview(Interview &t); //Constructor 2 };(i) Create an object, such that it invokes constructor 1.(ii) Write complete definition for Constructor 2.

Answer»

(i) Interview obj1(3);

(ii) Interview(Interview &t)

{  Month=t.Month;  }



Discussion

No Comment Found

Related InterviewSolutions