C++设计形状基类shape 设计draw函数

C++设计形状基类Shape,包含如下成员: (1)私有的int类型属性x和y,分别表示图形的中心点坐标; (2)有构造函数,参数有缺省值,对x和y进行初始化; (3)设计draw()函数,输出“Draw a Shape.”,及x和y的取值; (4)设计静态成员draw(int x,int y), 输出“Static Draw a Shape.”,及x和y的值;

https://blog.csdn.net/zys15195875600/article/details/81268153