Cpp クラス 継承 アップキャスト 新しいページはコチラ
提供: yonewiki
(→クラス 継承 アップキャスト) |
(→クラス 継承 アップキャスト) |
||
| 370行: | 370行: | ||
</syntaxhighlight2> | </syntaxhighlight2> | ||
| + | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">実行結果<!-- padding 上 右 下 左--> | ||
| + | <syntaxhighlight2 lang="text" line> | ||
| + | Constructor:CBaseInheritance(int,int) | ||
| + | BaseMoney=46800 | ||
| + | Constructor:CBaseInheritance(int,int) | ||
| + | Constructor:CDriveInheritance(int,int) | ||
| + | DeriveMoney=35400 | ||
| + | Constructor:CBaseInheritance(int,int) | ||
| + | Constructer:CDeriveInheritance(int,int,int) | ||
| + | DeriveMoney=35400 | ||
| + | Constructor:CBaseInheritance(int,int) | ||
| + | Constructer:CDeriveArrInheritance(int,int,int*,int) | ||
| + | DeriveMoney=48390 | ||
| + | Constructor:CBaseInheritance(int,int) | ||
| + | Constructer:CDeriveDiscountInheritance(int,int,double) | ||
| + | DeriveMoney=23400 | ||
| + | Destructer:~CDeriveDiscountInheritance() | ||
| + | Destructor:~CBaseInheritance() | ||
| + | Destructer:~CDeriveArrInheritance() | ||
| + | Destructor:~CBaseInheritance() | ||
| + | Destructer:~CDeriveInheritance() | ||
| + | Destructor:~CBaseInheritance() | ||
| + | Destructer:~CDeriveInheritance() | ||
| + | Destructor:~CBaseInheritance() | ||
| + | Destructor:~CBaseInheritance() | ||
| + | </syntaxhighlight2> | ||
[[C PlusPlus#C++からの技術|C++]]に戻る | [[C PlusPlus#C++からの技術|C++]]に戻る | ||