Initialized?

Report a typo

Add a single line of code so that the function returns true if property b has a value.

Write a program in Kotlin
class B {
lateinit var b: String

fun checkB() : Boolean {
// ... //
}
}
___

Create a free account to access the full topic