A

Admin • 833K Points
Coach

Q. Which of these is used to define a function in Kotlin?

  • (A) function
  • (B) fun
  • (C) def
  • (D) func
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin

Kotlin uses the keyword 'fun' to define functions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.