单项选择题

有如下程序: #inc1ude<iostream> using namespace std; c1ass AA{ int n; public: AA(int k):n(k){} int get(){retum n;} int get()const{return 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
题目列表

你可能感兴趣的试题

微信扫码免费搜题