A

Admin • 802.91K Points
Coach

Q. What is the return type of a Kotlin constructor?

  • (A) Unit
  • (B) Nothing
  • (C) Class
  • (D) None
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
Constructors do not have a return value in Kotlin; they implicitly return Unit.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.