问答题

简答题

设ClosedFigure是抽象类,以下声明有什么错误?
ClosedFigure fig=new ClosedFigure();

【参考答案】

编译错,不能创建抽象类的实例。