Kotlin OOP - Parenthesis After Parent Class ?
When I was learning Kotlin OOP, I was wonder why is parenthesis behind the name of parent class is needed when extending a class in Kotlin? For example: If we create a Animal parent class: open class Animal() Then we make child class Cat extend Anima...
Feb 22, 20213 min read