Adobe Flex ActionScript Interview Questions and Answers


What is Interface in term of OOP (Flash Actionscript)?

An interface is a collection of method declarations that allows unrelated objects
to communicate with one another. The structure of an interface definition is similar
to that of a class definition, except that an interface can contain only methods
with no method bodies. Interfaces cannot include variables or constants but can
include getters and setters. To define an interface, use the interface keyword.
Use the implements keyword in a class declaration to implement one or more interfaces.

Posted by:Richards