问题 单项选择题

有如下程序:
#include <iostream>
using namespace std;
class AA
int n;
public:
AA(int k):n(k)
int get()return n;
int get()constreturn n+1;

int main()

AA a(5);
const AA b(6);
cout<<a.get()<<b.get();
return 0;

执行后的输出结果是( )。

A. 55
B. 57
C. 75
D. 77

答案

参考答案:B

选择题
单项选择题