Created
December 30, 2011 14:38
-
-
Save Fintan/1540134 to your computer and use it in GitHub Desktop.
Simple interface example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package interfaces; | |
interface SampleInterface { | |
//Read only property | |
var ro(default,null):Int; | |
//Write only property | |
var wo(null,default):Int; | |
//property with getter and setter | |
var x(getX,setX):Int; | |
//function type that accepts a single string as an argument and returns an integer | |
var valueById:String -> Int; | |
//example methods | |
function sayHello(mess:String):String; | |
function destroy():Void; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment