单选题 有如下程序:
#include<iostream>
using namespace std;
class Amount{
int amount;
public:
Amount(int n=0):amount(n){ }
int getAmount( )const{return amount;}
Amount&operator+=(Amount A) {
amount+=a.amount;
return;
}
};
int main( ){
Amount x(3),y(7);
x+=y:
cout<<x.getAmount( )<<endl;
return 0;
}
已知程序的运行结果是10,则下画线处缺失的表达式是
  • A. *this
  • B. this
  • C. &amount
  • D. amount
【正确答案】 A
【答案解析】