l类的继承到底是怎么走的?
写出以下标出行号的语句的执行顺序: 就是注释里的编号从一到六class A {
static int i = 0;//1
float f = 1.0;//2
A() {
str = “Hello”;//3
}
}
public class B extends A {
static int j=3;//4
bool isHi = true;//5
B(bool hi) {
isHi = hi;//6
}
public static void main(String[] args) {
B bb = new B(false);
}
}