1.

A factory object is used ______________________(a) To create new classes(b) To create new function(c) To create new data members(d) To create new objectsThis question was posed to me in a national level competition.The above asked question is from Object Use topic in portion Object of Object Oriented Programming

Answer»

Correct choice is (d) To CREATE new objects

The best explanation: The factory object is an object that can be used to create other objects. If it is seen formally, it behaves like a METHOD that will RETURN object on its use. The object RETURNED is ASSUMED to be a new object.



Discussion

No Comment Found

Related InterviewSolutions