Constructors & Inheritance in Kotlin

added by JavaScript Kicks
4/27/2019 12:10:26 PM

698 Views

In our last Kotlin article, we looked at class and object . Today, we'll first talk about constructors and then turn to the subject of inheritance. There are two types of constructors in Kotlin: the primary and the secondary. A Kotlin class can have one primary constructor and several secondary constructors.


0 comments