常规参数
文章标题:
权重:
文章摘要:
public class Test { public static void main(String[] args){ B b=new B(0); int y=b.getY(); } } class A { public static int x=2; //1. private int y=2; //2. protected int z; //5. A(){ //3. x=x+1; showX(); //4. } public void showX(){ System.out.println(
关键字:
继承 方法 成员 一个 子类 int public 可以 定义 变量
管理密码: