So I took a test and failed because my program didn't run and I can't figure out what I did wrong. I would appreciate any help. My interface ran so I just posted a picture of the test and the codes for the two classes I tried to do.
The classes: (first class)
public class GamePlayer {
protected String name;
protected Object Record;
public GamePlayer(value){
this.value = value;
}
public String getNAme(){
return value;
}
public void setRecord(value){
this.value = value;
}
}
(second class)
import java.net.URL;
import java.io.File;
import java.util.Random;
public class TestPlayer extends GamePlayer implemetents Promotional, Comparable > TestPlayer {
private URL score;
public TestPlayer (String s){}
public URL getScore(){}
public void setScore (URL s){}
public String compareTo(GamePlayer other){
return 0;
}
public File value (int k){
return null;
}
public boolean test (Random r){}