1.

Which of the following constructor is used in the program given below?

#include<iostream.h> class IndiaBix
{ int x, y; public: IndiaBix(int xx = 10, int yy = 20 ) { x = xx; y = yy; } void Display() { cout<< x << " " << y << endl; } ~IndiaBix() { } };
int main()
{ IndiaBix objBix; objBix.Display(); return 0;
}

A. Copy constructor
B. Simple constructor
C. Non-parameterized constructor
D. Default constructor
Answer» E.


Discussion

No Comment Found

Related MCQs