google AbstractFactory
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Rich Rodecker
> Sent: Friday, November 17, 2006 6:08 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] polymorphism, with singletons
> 
> 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.
> _______________________________________________
> [email protected]
> 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
> 
_______________________________________________
[email protected]
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