Examveda

Can an inner class have its own properties and methods?

A. No, it can only access the outer class's properties and methods

B. No, it can only access the outer class's properties and methods and cannot have its own

C. Yes, but it can only access the outer class's properties and methods, not have its own

D. Yes, it can have its own properties and methods just like any other class

Answer: Option D


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.