How to write a constructor

Report a typo

You are given the following class:

class Order {

    String text;
    int amount;
}

Select the correct declaration of a two-argument constructor for this class.

Select one option from the list
___

Create a free account to access the full topic