The constructor of this class has an assertion that throws an error if the argument is blank.
class Animal(val name: String) {
init {
check(_________________) { "Name must not be blank" }
}
}
Fill in the missing part of code.
The constructor of this class has an assertion that throws an error if the argument is blank.
class Animal(val name: String) {
init {
check(_________________) { "Name must not be blank" }
}
}
Fill in the missing part of code.
Create a free account to access the full topic