Abstract Factory design pattern to create objects? Why can’t we just use the new operator?

Posted by Harsha on Stack Overflow See other posts from Stack Overflow or by Harsha
Published on 2010-06-03T14:31:00Z Indexed on 2010/06/03 14:34 UTC
Read the original article Hit count: 507

Filed under:
|

why do we need a Abstract Factory design pattern to create objects? Why can’t we just use the new operator? answer is, to avoid tight coupleing of the objects. But I didn't understand how ? can anyone explain with code (will be very useful).

what makes abstract factory design pattern useful and when.

Thanks in advance. Harsha T

© Stack Overflow or respective owner

Related posts about c#

Related posts about design-patterns