Hey, I have an abstract class Medium, where one of the datamembers is an enum.
private Taal talenOndertiteling[];
public enum Taal {
NEDERLANDS, FRANS, DUITS, ENGELS, SPAANS, ITALIAANS
}
public Taal[] getTalenOndertiteling() {
return talenOndertiteling;
}
public void setTalenOndertiteling(Taal[] talenOndertiteling) {
this.talenOndertiteling = talenOndertiteling;
}
Now when I try to call the last method like this:
BD bd1 = new BD();
bd1.setTalenOndertiteling(Taal.ENGELS);
I'm getting an error. (The BD class implements the Medium class) Any ideas on how I should be calling the method? And what if I wanted to set several languates, how would I do that?
Thanks!