Summary


Abstract classes are a very important tool in object-oriented design. They are most commonly used in class libraries and frameworks because they are a solid way to factor out common behavior across subclasses.

The Template and Factory Method design patterns are handy when you're working with abstract classes. The Template Method allows you to create a common algorithm defined generally whose specific steps will later get defined by concrete subclasses. And the Factory Method allows you to trigger the creation of objects in an abstract class, but to defer the specific type to the subclass.




Advanced ActionScript 3 with Design Patterns
Advanced ActionScript 3 with Design Patterns
ISBN: 0321426568
EAN: 2147483647
Year: 2004
Pages: 132

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net