#include <iostream>
using namespace std;
class Base
{
public:
Base(int m)
{
this->m = m;
cout << "Base" << endl;
}
int m;
void PrinB()
{
为何父类指针强制转换为子类时不安全的
最新推荐文章于 2024-08-08 18:37:26 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)