Cpp クラス 継承 新しいページはコチラ
提供: yonewiki
(→クラス 継承) |
(→クラス 継承) |
||
22行: | 22行: | ||
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>BaseInheritance.h<span>)</span><!-- padding 上 右 下 左--> | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>BaseInheritance.h<span>)</span><!-- padding 上 右 下 左--> | ||
<syntaxhighlight2 lang="cpp" line> | <syntaxhighlight2 lang="cpp" line> | ||
− | # | + | #ifndef __BASEINHERITANCE_H_YONET__ |
− | # | + | #define __BASEINHERITANCE_H_YONET__ |
#if _MSC_VER > 1000 | #if _MSC_VER > 1000 | ||
#pragma once | #pragma once | ||
#endif | #endif | ||
− | class CBaseInheritance{ | + | class CBaseInheritance { |
protected: | protected: | ||
int m_iBaseMoney; | int m_iBaseMoney; | ||
int m_iBaseMonth; | int m_iBaseMonth; | ||
− | + | CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth); | |
− | + | ~CBaseInheritance(); | |
private: | private: | ||
void m_fvBaseDispValue(); | void m_fvBaseDispValue(); | ||
40行: | 40行: | ||
}; | }; | ||
#endif | #endif | ||
+ | |||
</syntaxhighlight2> | </syntaxhighlight2> | ||