99色精品-9色在线-99色在线-99色视频 国产欧美日产一区二区三区_亚洲精品亚洲人成在线观看_四虎在线精品永久观看_免费一级a一片久久精

單項(xiàng)選擇題

What will be written to the standard output when the following program is run?()  
class Base {  int i;  Base() {  
add(1);  
}  
void add(int v) {  i += v;  }  
void print() {  System.out.println(i);  }  
}  
class Extension extends Base {  Extension() {  add(2);  }  
void add(int v) {  i += v*2;  }  }  
public class Qd073 {  
public static void main(String args[]) {  bogo(new Extension());  }  
static void bogo(Base b) {  b.add(8);  b.print();  
}  
}  

A.9
B.18
C.20
D.21
E.22

微信掃碼免費(fèi)搜題