this.name = name;
this.bind = bind;
this.category = category;
Run Code Online (Sandbox Code Playgroud)
它说
赋值给变量(3中的一个)没有效果.
我不知道为什么会出现这个错误,请帮忙.我正在使用Eclipse.
完整代码如下:
public class Module {
private String name;
private int bind;
private Category category;
public Module(String name,int bind,Category category) {
this.name = name;
this.bind = bind;
this.category = category;
}
Run Code Online (Sandbox Code Playgroud)