【单选题】请选出以下程序的输出结果 class A { public void func1() { System.out.println("A func1 is calling"); } public void func2() { func1(); } } class B extends A { public void func1() { System.out.println("B func1 is cal...
A.
编译错误
B.
B func1 is calling B func3 is calling
C.
A func1 is calling A func1 is calling B func3 is calling
【简答题】类clasg one在声明func成员函数时发生错误,出错原因是______。 class one private: int a; public: void func(two&); }; class two { private: int b; friend vold one::func(two&); }; void one::func(two&r) { a=r.b; }