Question about factory classes

Posted by devoured elysium on Stack Overflow See other posts from Stack Overflow or by devoured elysium
Published on 2010-04-01T21:00:28Z Indexed on 2010/04/01 21:03 UTC
Read the original article Hit count: 245

Currently I have created a ABCFactory class that has a single method creating ABC objects. Now that I think of it, maybe instead of having a factory, I could just make a static method in my ABC Method. What are the pro's and con's on making this change? Will it not lead to the same? I don't foresee having other classes inherit ABC, but one never knows!

Thanks

© Stack Overflow or respective owner

Related posts about factory-pattern

Related posts about java