Cpp クラス 継承 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(クラス 継承)
(クラス 継承)
33行: 33行:
 
     int m_iBaseMonth;
 
     int m_iBaseMonth;
 
private:
 
private:
     void m_fvBaseDispValue();
+
     int m_fiBaseSumMoney();
 
public:
 
public:
 
     CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth);
 
     CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth);
 
     ~CBaseInheritance();
 
     ~CBaseInheritance();
     int m_fiBaseSumMoney();
+
     void m_fvBaseDispValue();
 
};
 
};
 
#endif
 
#endif
 
 
</syntaxhighlight2>
 
</syntaxhighlight2>
  
73行: 72行:
 
int main() {
 
int main() {
 
     CBaseInheritance objCBaseInheritance(3900, 12);
 
     CBaseInheritance objCBaseInheritance(3900, 12);
 +
    objCBaseInheritance.m_fvBaseDispValue();
 
     return 0;
 
     return 0;
 
}
 
}

2020年7月14日 (火) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス