【C++的探索路13】继承与派生之练习篇(需从新学习)

由程序结果填空 输出:4,6html 填空:ios class A { int val; public: A(int n) { val = n; } int GetVal() { return val; } }; class B :public A { private: int val; public: B(int n) :____ { } int GetVal() {
相关文章
相关标签/搜索