該程序最終的輸出是()
A.A::msg B.B::msg C.A::msg B::msg D.沒有重載類B的輸出運(yùn)算符,程序編譯出錯(cuò)
下面的程序段定義了三個(gè)類A、B、C和一個(gè)全局函數(shù)func() 下列四個(gè)選項(xiàng)中,哪個(gè)說法是正確的()
A.B::funcB()能夠訪問A::proVar變量 B.C::funcC()能夠訪問A::proVar變量 C.func()能夠訪問B::pubVar變量 D.func()能夠訪問C::pubVar變量
該程序的輸出是()
A.B::print()called. B.A::print()called. C.A::print()called. B::print()called. D.B::print()called. A::print()called.