Is there something I'm missing that you can't set Model's static
_instance property to either an instance of either XMLModel or
URLModel instead of Model in Model's getInstance()?

Mark



On 11/18/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:
What's a good way to go about hanlding a situation where you need
polymorphism, yet would still like be able to access that object via
getInstance()?

I have a Model class that has two subclasses...XMLModel and URLModel. I'd
like to be able to access either of those classes via getInstance(), but I
won't know which one will be loaded until runtime.
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to