有如下程序: #include<iostream> using namespace std; class MyClass public: MyClass(int x):val(X) void Print( )constcout<< const:val= <<val<<’ t’; void Print( )eout<< val= <<val<<’ t’; private: int val; ; int main( ) const MyClass objl(10); MyClass obj2(20); objl.Print( ); obj2.Print( ); return 0; 程序的输出结果是
A.val=10 const:val=20
B.eonst:val=10 eonst:val=20
C.eonst:val=10 val=20
D.val=10 val=20