//编译时说:'addCours' :cannot access public member declared in Class Student?
...全文
692打赏收藏
关于继承问题:子类为什么不可以用基类的public member function ?
Class Graduate: public Student { } Graduate g1; Course temp; g1.addCoure( temp ); //编译时说:'addCours' :cannot access public member declared in Class Student?