In order to subclass the Person class, what is one thing you must do?
abstract class Person(val name: String) {
abstract fun displayJob(description: String)
}
abstract class Person(val name: String) {
abstract fun displayJob(description: String)
}A. The subclass must be marked sealed
B. You must override the displayJob() method
C. You must mark the subclass as final
D. An abstract class cannot be extended, so you must change it to open
Answer: Option B
Related Questions on Kotlin Program
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.
Which platform does Kotlin primarily target?
A. Python Bytecode
B. JavaScript
C. JVM (Java Virtual Machine) Bytecode
D. PHP

Join The Discussion