October 2019
Intermediate to advanced
434 pages
11h 54m
English
An interface can inherit from another interface. In this case, we'll define a new interface, Movable, that inherits from GameObject:
interface Movable : GameObject
interface Movable : GameObject { fun move(currentTime: Long)}
class Player : Movable { override fun update(currentTime: Long) { // must implement this GameObject interface ...
Read now
Unlock full access