单选题 下列程序的运行结果是______。
class Shape{
public Shape(){
System.out.print("Shape");
}
}
class Circle extends Shape(
public Circle(){
System.out.print("Circle");
}
}
public class Test{
public static void main(String[] args){
Shape d=new Circle();
}
}
  • A.Shape
  • B.Circle
  • C.ShapeCircle
  • D.程序有错误
【正确答案】 C
【答案解析】