34. 给定java代码,如下:
abstract class Shape {
abstract void draw( );
}
要创建Shape类的子类Circle,以下代码正确的是()
A. class Circle extends Shape{ int draw( ){} }
B. abstract class Circle extends Shape{ }
C. class Circle extends Shape{ void draw( );
D. class Circle extends Shape{ void draw( ){} }
|
|