Kotlin Inner class In other words, we can say that a nested class which is marked as “inner” is called inner class . Inner class cannot be declared inside interfaces or non-inner nested classes. The advantage of inner class over nested class is that, it is able to access members of outer class even it is private.