Interfaces
package MyLib
interface IMyInterface
doSomething()
end
class MyClass implements IMyInterface
doSomething()
end
end
Properties
package MyLib
interface IMyInterface
myProperty float set
myReadonlyProperty float
end
class MyClass implements IMyInterface
myProperty float
get
return 123
end
set
Console.log(value)
end
end
myReadonlyProperty float
get
return 123
end
end
end
Inheritance
package MyLib interface IMyBaseInterface doSomething() end interface IMyInterface extends IMyBaseInterface doSomething2() end class MyClass implements IMyInterface doSomething() end doSomething2() end end