抽象基类(abstract base class,ABC)例子:圆与椭圆.建立一个基类BaseEllipse,建立它的恋歌继承了Ellipse和Circle.ellipse.h #ifndef ELLIPSE_H_ #define ELLIPSE_H_ class BaseEllipse { public: ; }; class Ellipse : public BaseEllipse { private: double a, b; public: Ellipse(double a, doubl…