Cpp クラス 継承 新しいページはコチラ
提供: yonewiki
(→クラス 継承) |
(→クラス 継承) |
||
33行: | 33行: | ||
int m_iBaseMonth; | int m_iBaseMonth; | ||
private: | private: | ||
− | + | int m_fiBaseSumMoney(); | |
public: | public: | ||
CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth); | CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth); | ||
~CBaseInheritance(); | ~CBaseInheritance(); | ||
− | + | 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; | ||
} | } |