摘要: 构造: 现有父类后有子类 析构:和构造顺序相反,先析构子类后析构父类 #include <iostream> class A { public: A() { std::cout << "ctor father" << std::endl; } virtual ~A() { std::cout << 阅读全文
posted @ 2023-01-16 15:33 Wangtn 阅读(35) 评论(0) 推荐(0) 编辑