attractiveness
beauty
figure
shape
若有如下类定义:class Shape {public:virtual void Draw()=0;};则下列关于Shape类的叙述中,正确的是( )。A. 类Shape是虚基类B.类Shape是抽象类C.类Shape中的Draw函数声明有误D.“Shape s;”能建立Shape的对象s
点击查看答案
下面是类Shape的定义: classShape{ public: virtualvoidDraw( )=0; } 下列关于Shape类的描述中,正确的是( )。A.类Shape是虚基类B.类Shape是抽象类C.类Shape中的Draw函数声明有误D.语句“ShapeS;”能够建立Shape的一个对象S
编译以下代码,将出现什么情况?()abstract class Shape{ abstract void draw();}Class Square extends Shape{ }A. Square类和Shape类都可以成功编译B. Square类无法编译,但Shape类可以编译C. 类无法编译,但Square类可以编译D. Square类和Shape类都无法编译
在Java语言中,如果你有下面的类定义: Abstract class Shape{ Abstract void draw(); } class Square extendeds Shape{} 如果你试图编译上面的代码会发生()。 A、一切成功编译B、Shape可以编译,Square不能编译C、Square可以编译,Shape不能编译D、Shape,Square都不能编译
public abstract class Shape { int x; int y; public abstract void draw(); public void setAnchor(int x, int y) { this.x = x; this.y = y; } } and a class Circle that extends and fully implements the Shape class. Which is correct?() A、 Shape s = new Shape(); s.setAnchor(10,10); s.draw();B、 Circle c = new Shape(); c.setAnchor(10,10); c.draw();C、 Shape s = new Circle(); s.setAnchor(10,10); s.draw();D、 Shape s = new Circle(); s->setAnchor(10,10); s->draw();E、 Circle c = new Circle(); c.Shape.setAnchor(10,10); c.Shape.draw();
()样条曲线的总称,可以在放样对象中任意插入需要的截面,包括()和()。A、shape型,界面型,路径型B、路径型,shape型,界面型C、界面型,shape型,路径型D、路径型,界面型,shape型
Dynamic Shape是()。