private與protected的使用(繼承與派生)

class base{ private: int a1; protected: int b1; public: base(int a, int b) :a1(a), b1(b){} ~base(){}; void show(){ cout << a1 << " " << b1 << " " << endl; } }; class base1 :public base { pub
相關文章
相關標籤/搜索