fn1

定义一个基类Base,有两个公有成员函数fn1,fn2,私有派生出Derived类,如何通过Derived类的对象调用基类的函数fn1。

定义一个基类Base,有两个公有成员函数fn1,fn2,私有派生出Derived类,如何通过Derived类的对象调用基类的函数fn1。 #include<bits/stdc++.h> using namespace std; class Base { public: int fn1() { ret ......
函数 Derived fn1 fn 对象
共1篇  :1/1页 首页上一页1下一页尾页