Examveda

What is the difference between a top-level function and a member function in Kotlin?

A. A top-level function is defined outside a class

B. A top-level function is defined inside a class

C. A top-level function is static

D. A top-level function can only be called from inside a class

Answer: Option A


This Question Belongs to Computer Science >> Kotlin Program

Join The Discussion

Related Questions on Kotlin Program

What is Kotlin?

A. A new version of Java.

B. A JavaScript framework.

C. A statically-typed programming language for the JVM, Android, and browser.

D. A database management system.