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;
相關文章
相關標籤/搜索