如何将参数传递给构造函数?

时间:2020-02-04 13:40:29

标签: java android apollo

我有带有构造函数的自动生成的类

Userinput(Input<Integer>id, Input<String>name) {
    this.id = id;
    this.name = name;
})

如何将值传递给构造函数。

1 个答案:

答案 0 :(得分:1)

Userinput userInput = new Userinput(1, "test");