C++ virtual 析构函数
case 1
#include
using namespace std;
class Base{
public:
~Base() {cout<<"~B"<
using namespace std;
class Base{
public:
~Base() {cout<<"~B"<
case 1
#include
using namespace std;
class Base{
public:
~Base() {cout<<"~B"<
using namespace std;
class Base{
public:
~Base() {cout<<"~B"<
共有 0 条评论