GeekInterview.com
Series: Subject: Topic:
Question: 41 of 85

what is factory class?

Asked by: Interview Candidate | Asked on: May 25th, 2007
Showing Answers 1 - 2 of 2 Answers
00elton00

Answered On : Aug 4th, 2007

View all answers by 00elton00

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.

  
Login to rate this answer.
Sandhya.Kishan

Answered On : Jun 13th, 2012

View all answers by Sandhya.Kishan

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.

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.