【面向對象常見面試題】訪問聲明的幾點說明(xx)

一、數據成員也可使用訪問聲明函數 二、訪問聲明中只含不帶類型和參數的函數名或變量名spa void A::show;code A::show();class void A::show();變量 三、訪問聲明不能改變成員在基類中的訪問屬性數據 class A{ public: int x1; protected: int x2; private: int x3; };
相關文章
相關標籤/搜索