Adobe Flex Actionscript Question:
What is Interface in term of OOP (Flash Actionscript)?
Answer:
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.
Previous Question | Next Question |
What is different between URLLoader class and Loader class? | What is Inheritance in term of OOP (Flash Actionscript)? |