hallo
warum kann ich das feld text in der basisklasse nicht ändern?
als fehlermeldung zeigt mir es an
field cannot find....
danke kostonstyle
warum kann ich das feld text in der basisklasse nicht ändern?
Code:
public class Oberst {
protected String text = "I'm the Upper Class";
protected int zahl;
void show_text() {
System.out.println(text);
}
}
class Under extends Oberst {
text = "I'm the Under Class";
zahl = 3;
}
field cannot find....
danke kostonstyle