Computer scienceProgramming languagesKotlinObject-oriented programmingObject-oriented programming basic

Visibility modifiers for members

Visible anywhere

Report a typo

Inside the Friend class, declare a final field that should be available anywhere. It is called name with type String and has any default value.

Write a program in Kotlin
class Friend {
// Write code here
}
___

Create a free account to access the full topic