I have just started programming in Kotlin, and have come through inheriting classes and defining derived classes in two ways.
1.
open class Derived (var a: