Cpp クラス 継承 新しいページはコチラ
提供: yonewiki
(→クラス 継承) |
(→クラス 継承) |
||
| 78行: | 78行: | ||
} | } | ||
</syntaxhighlight2> | </syntaxhighlight2> | ||
| + | |||
| + | <syntaxhighlight2 lang="text" line> | ||
| + | Constructor:CBaseInheritance | ||
| + | Money=46800 | ||
| + | Destructor:~CBaseInheritance | ||
| + | </syntaxhighlight2> | ||
| + | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>BaseInheritanceMain.cpp<span>)</span><!-- padding 上 右 下 左--> | ||
| 97行: | 104行: | ||
private: | private: | ||
int m_iDeriveMoney; | int m_iDeriveMoney; | ||
| − | void CDeriveInheritance(int iArgDeriveMoney, int iArgDeriveMonth, int | + | void CDeriveInheritance(int iArgDeriveMoney, int iArgDeriveMonth, int iArgOptionMoney); |
void ~CDeriveInheritance(); | void ~CDeriveInheritance(); | ||
public: | public: | ||