在Java語言中,如果你有下面的類定義:
abstract class Shape {
abstract void draw(); }
Class Square extends Shape {}
如果你試圖編譯上面的代碼會(huì)發(fā)生()。
A.一切成功編譯
B.Shape可以編譯,Square不能編譯
C.Square可以編譯,Shape不能編譯
D.Shape,Square都不能編譯
A.private
B.pretected
C.public
D.friendly