<分区>
好久没用JAVA了。
我正在尝试创建实例变量以便在另一个类中使用方法。
但它给了我这个错误消息,说“构造函数 BB 未定义”
有什么帮助吗?
public class AA implements CC { //this is the class where I am trying to create an instance variable
public int Get() {
throw new IllegalStateException("Please implement me.");
BB fifo = new BB(); // this is where I am declaring.
}
}
还有FIFOLock类的签名。
public class BB implements DD {
public int Get() {}
}