单选题 有如下程序:
#include <iostream>
using namespace std;
class Test
public:
Test() n+=2;
~Test() n-=3;
static int getNum()retum n;
private:
static int n;
;
int Test:: n=1;
int main()

Test*p=new Test;
delete p;
cout<<"n="<<Test:: getNum()<<end1;
return 0;
;
执行后的输出结果是______.

【正确答案】 A
【答案解析】[解析] 经过一次构造函数和析构函数的调用后,执行后的输出结果是A。