|
|
| No such thing as a small change | |
| PerlMonks |
Re: OO: Factory vs. "Seed" (?) patternby lachoy (Parson) |
| on May 14, 2005 at 05:54 UTC ( [id://457014]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I think it makes sense because that's exactly what Class::Factory does. I don't think it has a name because some other OO languages don't allow you to do this -- if you say 'new Foo()' then you're getting back an object of class 'Foo', not just something that implements 'Foo'. That's why those other languages often use class (or static) methods to implement a factory, like 'Foo.create( ... )' Chris
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||