What is factory class?

Showing Answers 1 - 4 of 4 Answers

00elton00

  • Aug 4th, 2007
 

A Factory class is one that is used to return instances of other classes. This is generally used in the context of Factory Design Pattern.

  Was this answer useful?  Yes

It is a class which provide an interface for creating families of related objects.It encapsulate the logic which helps to decide which subclass should be instantiated and hence removes this decision from the application.Factory classes are useful when the decision of which class to use must be done at run time.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions