#include <iostream> class A{ public: void print() { std::cout << "test" << std::endl; } }; int main() { A *pA = NULL; pA->print(); return 0; }