Interfaces

Run Settings
LanguageKotlin
Language Version
Run Command
fun main(args : Array<String>){ val gagak = Bird(2) gagak.fly() } interface IFly{ fun fly() val numberOfWings: Int } class Bird (override val numberOfWings: Int) : Ifly{ override fun fly(){ if(numberOfWings > 0) println("Flying with $numberOfWings wings") else println("I flying without wings") } }
Editor Settings
Theme
Key bindings
Full width
Lines