Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Whats the purpose of Factory Methods?

esko918esko918 esko918Posts: 228New Users @ @
Can someone give a real world example of Factory Methods and what they are used for? I know they are used as initializers or constructors for objects but I can't see the main reason why we would use a factory method instead of just creating the object regularly like
var newObject = SomeClass()
Sign In or Register to comment.