I have the following code:
public interface Block {
public double[] getOutput();
public double[] getOutput(double[] inputs);
}
public class Dataset implements Block{
public double[] getOutput(){
return(new double[0]);
}
}
I’m using netbeans IDE, and It produces the following message:
Dataset is not abstract and does not override abstract method getOutput(double[]) in Block
I’m unsure as to why this is happening .. any help would be appreciated
Thanks
Your
Datasetclass must provide an implementation for thegetOutput(double[])function. As written, it only provides an implementation forgetOutput()(with no arguments).