From: Robert Dober Date: 2006-12-03T18:03:24+09:00 Subject: Re: Factory pattern, abstract base class ------=_Part_9724_10741677.1165136602152 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 12/3/06, James Edward Gray II wrote: > > On Dec 2, 2006, at 5:15 PM, Daniel Berger wrote: > > > Perhaps my whole approach is wrong. What is the proper way to achieve > > what I'm after (without resorting to making Bar a module)? > > This works, but is probably poor style: Which would follow from one of the basic rules of OOP, if memory serves: A Class does not know anything about its subclasses, be it abstract or not. OP I suggest that you rethink your design, AFAIK that would not be very flexible concerning new subclasses right? > James Edward Gray II > > Cheers Robert -- "The real romance is out ahead and yet to come. The computer revolution hasn't started yet. Don't be misled by the enormous flow of money into bad defacto standards for unsophisticated buyers using poor adaptations of incomplete ideas." - Alan Kay ------=_Part_9724_10741677.1165136602152--