Vidyalelo
Computer Science · Q137

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 137

Q137

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
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board