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::mf_vBaseDispValue() {
+
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);
 
}
 
}

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



個人用ツール
名前空間

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