-
Junior Member
Factory method pattern
What is Factory method pattern
Can any body explain me the Factory method pattern.
-
Junior Member
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.
-
Junior Member
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
-
Forum Rules