Flash: Interface

May 6th, 2005 by Luis

This is probably one of the best articles about the definition and use of Interface in OOP written by a non-professional programmer.

What is interface ?

2 Responses to “Flash: Interface”

  1. Thomas Says:

    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

  2. Luis Says:

    Abstract Class in AS2.0

    http://www.actionscripts.org/tutorials/advanced/AbstractClassin_AS2/index.shtml

    http://www.design-nation.net/en/archives/000411.php

Leave a Reply