Constructors
Constructors
CONSTRUCTOR WORKSHEET 1
CLASS X
1. A constructor is used to ………. the data members
a) Inform b) interchange c) initialize d) introduce
5. Which unit of the class gets called at the time of object creation.
a) Block b) constructor c) class d) program
20. Assertion (A) : A Constructor is a special member function and has the same
name as the class itself.
Reason (R) : A constructor and class are the same things.
a) Both A and R are true and R is the correct explanation of A.
b) Both A and R are true and R is not the correct explanation of A.
c) A is true but R is false.
d) A is false but R is true.