1.

How many types of constructors are available, in general, in any language?(a) 2(b) 3(c) 4(d) 5This question was posed to me in my homework.I'm obligated to ask this question of Types of Constructors in portion Constructors and Destructors of Object Oriented Programming

Answer»

Correct option is (b) 3

Explanation: There are 3 types of CONSTRUCTORS in general, namely, default constructors, PARAMETERIZED constructors and copy constructors. Default ONE is called whenever an object is CREATED without arguments.



Discussion

No Comment Found

Related InterviewSolutions