Cpp クラス 継承 アップキャスト 新しいページはコチラ
提供: yonewiki
(→クラス 継承 アップキャスト) |
(→クラス 継承 アップキャスト) |
||
59行: | 59行: | ||
CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth); | CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth); | ||
~CBaseInheritance(); | ~CBaseInheritance(); | ||
+ | void mf_vDispValue(); | ||
void mf_vBaseDispValue(); | void mf_vBaseDispValue(); | ||
}; | }; | ||
89行: | 90行: | ||
} | } | ||
− | void CBaseInheritance:: | + | void CBaseInheritance::mf_vDispValue() { |
int iSumMoney = mf_iBaseSumMoney(); | int iSumMoney = mf_iBaseSumMoney(); | ||
+ | printf("BaseMoney=%d\n", iSumMoney); | ||
+ | } | ||
+ | |||
+ | void CBaseInheritance::mf_vBaseDispValue() { | ||
+ | int iSumMoney = m_iBaseMoney * m_iBaseMonth; | ||
printf("BaseMoney=%d\n", iSumMoney); | printf("BaseMoney=%d\n", iSumMoney); | ||
} | } |