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