ExamVeda
Login
Home
This question belongs to Computer Science Kotlin Program
Kotlin Program
?

From the Supervisor subclass, how do you call the Employee class's display() method?
open class Employee(){
  open fun display() = println("Employee display()")
}
class Supervisor : Employee() {
  override fun display() {
    println("Supervisor display()")
  }
}

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.