Examveda

Kotlin will not compile this code snippet. What is wrong?
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


This Question Belongs to Computer Science >> Kotlin Program

Join The Discussion

Related Questions on Kotlin Program

What is Kotlin?

A. A new version of Java.

B. A JavaScript framework.

C. A statically-typed programming language for the JVM, Android, and browser.

D. A database management system.