1.

How many types of constructors are available for use in general (with respect to parameters)?(a) 2(b) 3(c) 4(d) 5I got this question in class test.My question comes from Constructors in portion Constructors and Destructors of Object Oriented Programming

Answer»

Correct answer is (a) 2

To explain: TWO types of CONSTRUCTORS are defined GENERALLY, namely, default constructor and parameterized constructor. Default constructor is not NECESSARY to be defined always.



Discussion

No Comment Found

Related InterviewSolutions