Flash: Interface
May 6th, 2005 by LuisThis is probably one of the best articles about the definition and use of Interface in OOP written by a non-professional programmer.
This is probably one of the best articles about the definition and use of Interface in OOP written by a non-professional programmer.
This entry was posted on Friday, May 6th, 2005 at 9:48 am and is filed under Flash, Learnings. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
lessrain blog is proudly powered by
WordPress
Entries (RSS)
and Comments (RSS).
May 8th, 2005 at 7:20 pm
Actually the example he gives would be more one for abstract classes which Flash doesn’t provide, but that’s another issue… Interfaces are mainly good to let completely different classes that don’t have a common ancestor act in a similar way. A book and a bar of chocolate are completely different things, but they’re both “Buyable”. To be a valid “Buyable” item, you need to define a couple of common properties, e.g. getPrice().
See also Java-Docs on abstract classes and interfaces (not java specific, common OOP theory):
http://java.sun.com/docs/books/tutorial/java/concepts/interface.html
http://java.sun.com/docs/books/tutorial/java/javaOO/abstract.html
May 9th, 2005 at 11:09 am
Abstract Class in AS2.0
http://www.actionscripts.org/tutorials/advanced/AbstractClassin_AS2/index.shtml
http://www.design-nation.net/en/archives/000411.php