As with most class-based object-oriented languages, Kotlin classes can extend
or inherit from other classes.
By default, they extend Any
, the root of all Kotlin classes.
To add a superclass, place a call to its constructor after your class'
primary constructor, separated by a :
.
You can learn more about this in:
Tags: