Results 1 to 3 of 3

Thread: Factory method pattern

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Answers
    1

    Factory method pattern

    What is Factory method pattern
    Can any body explain me the Factory method pattern.


  2. #2
    Junior Member
    Join Date
    Nov 2007
    Answers
    10

    Re: Factory method pattern

    It is one of the type of design pattern .
    Like other creational patterns, it deals with the problem of creating objects without specifying the exact class of object that will be created. The factory method design pattern handles this problem by defining a separate method for creating the objects, which subclasses can then override to specify the derived type of product that will be created.


  3. #3
    Junior Member
    Join Date
    Apr 2008
    Answers
    2

    Re: Factory method pattern

    Factory Pattern is a great way to change the type of object that will be needed by client whithout changing single line of code.You can have a config file that says if this is parameter then create object of this class ,the factory will simply read it from there and thus providing total abstraction on client which object is created...be sure to use it to solve creational problems.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact