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

🎲 Try a Random Question  |  Total Questions in Quiz: 83  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Kotlin Quiz — practice the complete quiz, review flashcards, or try a random question.

Kotlin MCQs For LinkedIn Skill Assessments.


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