You have the following code:
class Me() {
companion object Companion {
val myBrother = "Michael"
}
}
How can we get the myBrother field and print the resulting word? Write the correct code line.
You have the following code:
class Me() {
companion object Companion {
val myBrother = "Michael"
}
}
How can we get the myBrother field and print the resulting word? Write the correct code line.
Create a free account to access the full topic