#include"iostream"
using namespace std;
class base{
public:
void f()
{
cout<<"base f:"<<endl; // prints base f:
}
};
int main()
{
base *b; // even same out put with " base *b =NULL; "
b->f();
return 0;
}
O/P:基F:函数调用++
任何一个可以请解释的函数是如何获取调用而不将对象分配到指针。
Thanks.