错误 2 error LNK2019: 无法解析的外部符号 "public: __thiscall Rectangle::~Rectangle(void)" (??1Rectangle@@QAE@XZ),该符号在函数 "public: __thiscall Square::~Square(void)" (??1Square@@QAE@XZ) 中被引用
原因:函数这是只是声明了却没有定义
参考https://blog.youkuaiyun.com/dlm_211314/article/details/39138895