1. 以下代码运行输出是()
public class Person{private String name = "Person"';int age = 0;
}public class Child extends Person{public String grade;public static void main(String[] args){Person p = new Child();System.out.println(p.name); //Person的name属性为private}
} A. 输出:Person
B. 没有输出
C. 编译出错
D. 运行出错
分析:

2. 以下程序的运行结果是()
class Person{public Person(){System.out.println("this is a Person");}
}public class Teacher extends Person{private String name="Tom&














![[负荷预测]基于灰色GM(1,1)模型的中长期电力负荷预测](https://img-blog.csdnimg.cn/aeaa1e0c78c54c978e6c8e377e669bcf.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBA5by6aGVhdmVu,size_12,color_FFFFFF,t_70,g_se,x_16)

