1.

Why is a class called a factory of objects ?

Answer»

The factory of objects means a factory that produces the objects. Class is said to be an object factory because the class, basically is an object maker. It contains all the attributes to create an object. It also contains the statements that describe the operation that the object is going to perform.



Discussion

No Comment Found

Related InterviewSolutions