Heim > Fragen und Antworten > Hauptteil
class Fu{
//public int x=10;
final public int j=20;
public void show(){
System.out.println("Fu show()");
}
}
class Zi erweitert Fu {
public void show(){
//int x=100;
int j=200;
System.out.println("Zi show ()");
//System.out.println(x);
System.out.println(j);
}
}
class FinalDemo1 {
public static void main( String[] args){
Zi z= new Zi();
z.show();
}
}