qfedu-cpp-level/day6/d4.cpp

22 lines
230 B
C++
Raw Normal View History

2023-08-14 17:20:39 +08:00
// 将父类的函数改为虚函数
#include <iostream>
#include <cstring>
#include <cstdlib>
using namespace std;
clacc Printer
{
public:
virtual void open()
{
cout << ""
}
}
int main()
{
return 0;
}