Article function reference

Report a typo

Given the following class:

class Article(val name: String, val text: String, val authors: List<String>)  {
    
    fun getAuthors(): List<String>{
        return authors
    }
}

How can you write a function reference to the function getAuthors without an instance?

Do not add whitespaces to your result.

Enter a short text
___

Create a free account to access the full topic