面向對象-數據保護與共享-常模塊

有空會把筆記整理下的c++ #include<bits/stdc++.h> using namespace std; /* 出於數據保護與共享,出現了常模塊。顧名思義,常模塊就是構造後數據不容許變化的模塊。 常數據成員 */ class Clock{ private: int h,m,s; const int maxn=100; ///常數據成員:在對象構造
相關文章
相關標籤/搜索