class instance interface abstract-class extends implements private protected public static const constructor super read-only friendly-method event |
InterfaceAlthough interface wont increase the efficiency of a program, interface can increase the maintainability and readability. ZNOW supports interface and it's the option for the programmers to use it or not. Like creating a class, the syntax of creating an interface is similar. var Player=Interface({
play : ABSTRACT(/*sec*/),
stop : ABSTRACT()
});
Each abstract function has to be declared with "ABSTRACT()" prefix. It is to ensure the code readability, easy to read. And it can add the arguments passing in an elegant way. |