c++CLASS public protected private 继承

#include <iostream> using namespace std; class Inherit//继承 {public: string public_str; void public_func() {cout<<"public_func:"<<public_str<<endl;} protected: string protected_str;
相关文章
相关标签/搜索