MCQs>IT & Programming>Kotlin>You have an enum class Signal that represents the state of a network connection. You want to print the position number of the SENDING enum. Which line of code does that?
Kotlin MCQs
You have an enum class Signal that represents the state of a network connection. You want to print the position number of the SENDING enum. Which line of code does that?
Answer
Correct Answer: Println(Signal.SENDING.ordinal)
Explanation:
Note: This Question is unanswered, help us to find answer for this one