Creating news

Report a typo

You are given a class with a constructor:

class News {
    
    String title;
    String text;
    String[] tags;

    public News(String title, String text) {
        this.title = title;
        this.text = text;
        this.tags = new String[2];
    }
}

Choose the correct way to create an object of this class.

Select one or more options from the list
___

Create a free account to access the full topic