public class Fu {
int i = 10;
public Fu{
System.out.println("fu构造");
}
public void show(){
System.out.println("父show");
}
}
写上public的话public就报错Syntax error on token "public", class expected after this token
不写public的话Fu就报错Syntax error on token "Fu", delete this token |