getAuthors reference

Report a typo

Given the following class containing getters and setters:


class Article {
    
    String name;
    String text;
    String[] authors;
    
    public String[] getAuthors() {
        return authors;
    }
    
    // other getters and setters
}

How to write a method reference to the method getAuthors without an instance?

Enter the correct answer without ; at the end. Do not use spaces in the result.
Enter a short text
___

Create a free account to access the full topic