Member functions' return type

Report a typo

Consider the following class:

class Person(val name: String) {

    fun say() = println("Hi")
    fun self() = this
    fun signature() = name
}

Match the member functions to their return types.

Match the items from left and right columns
say
self
signature
String
Unit
Person
___

Create a free account to access the full topic