![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: OO: Factory vs. "Seed" (?) patternby lachoy (Parson) |
on May 14, 2005 at 09:54 UTC ( [id://457014]=note: print w/replies, xml ) | Need Help?? |
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
|
|