Kotlin will not compile this code snippet. What is wrong?
class Employee
class Manager : Employee()
class Employee
class Manager : Employee()A. In order to inherit from a class, it must be marked open
B. In order to inherit from a class, it must be marked public
C. In order to inherit from a class, it must be marked sealed
D. In order to inherit from a class, it must be marked override
Answer: Option A

Join The Discussion