using namespace std; class A { public: void FunctionA() {cout << "FunctionA" << endl;} virtual void FunctionB() {cout << "FunctionB" << endl;} static void FunctionC() {cout << "FunctionC" << endl;} }; class B : public A { public: void FunctionB() {cout << "FunctionB" << endl;} int FunctionD() {cout << "FunctionD" << endl;} }; int main() { B *b = nullptr; b->FunctionA(); b->FunctionB(); b->FunctionC(); b->FunctionD(); return 0; }
以上程序中,下列哪个函数调用会有问题()