CPlusPlusThings/codingStyleIdioms/5_pImpl/a.cpp~
Light-City 4f149eec72 update
2019-12-12 16:09:55 +08:00

25 lines
251 B
C++

#include <iostream>
using namespace std;
class C {
public:
virtual void print();
};
class CC:public C {
public:
void print() {
cout<<"CC"<<endl;
}
};
int main() {
CC* c = dynamic_cast<CC *>(new C);
//c->print();
}