日韩欧美亚洲 _ 欧美亚洲一区 _ 日本亚洲欧美 _ 亚洲精品欧美 国产白袜脚足J棉袜在线观看_亚洲熟妇av一区二区三区_久久天天躁狠狠躁夜_精品众筹模特私拍在线

單項(xiàng)選擇題

class ClassA { 
public int numberOfinstances; 
protected ClassA(int numberOfinstances) { 
this.numberOflnstances = numberOfinstances; 
} 
} 
public class ExtendedA extends ClassA { 
private ExtendedA(int numberOfinstances) { 
super(numberOflnstances); 
} 
public static void main(String[] args) { 
ExtendedA ext = new ExtendedA(420); 
System.out.print(ext.numberOflnstances); 
} 
} 
Which is true?() 

A. 420 is the output.
B. An exception is thrown at runtime.
C. All constructors must be declared public.
D. Constructors CANNOT use the private modifier.
E. Constructors CANNOT use the protected modifier.

題目列表

你可能感興趣的試題

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