January 2018
Intermediate to advanced
434 pages
14h 1m
English
Let's now see how to work with an abstract class in these steps:
abstract class Mammal { abstract fun move(direction: String)}
class Dog : Mammal() { override fun move(direction: String) { println(direction) }}
fun main(args: Array<String>) { var x = Dog() x.move("North")Read now
Unlock full access