Vidyalelo
Computer Science · Q29

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 29

Q29

What is a nested class in Kotlin?

A.
A class that is defined within another class
Answer
B.
A class that is defined within a function
C.
A class that is defined within a package
D.
A class that is defined outside of any other class or function

Answer: Option A

Solution

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