(Hi everyone -- I'm new to the list, but have been programming in Flash
since v4.)

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Stephen Ford
> 
> Are Abstract Classes and Interfaces the same thing ?

Flash doesn't actually have abstract classes, but I like to fake it
sometimes by simply making the constructor private. That way you can't
instantiate the class itself (at least from code external to the class),
but have to extend it and instantiate subclasses.

I also like to fake abstract methods by creating methods in the
"abstract" superclass which just throw errors. That way you have to
override them in subclasses before you can use them.
--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2019 Riverside Dr.
Los Angeles, CA 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.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