Cpp クラス 継承 アップキャスト 新しいページはコチラ
提供: yonewiki
(→クラス 継承 アップキャスト) |
(→クラス 継承 アップキャスト) |
||
376行: | 376行: | ||
<syntaxhighlight2 lang="text" line start=900> | <syntaxhighlight2 lang="text" line start=900> | ||
Constructor:CBaseInheritance(int,int) | Constructor:CBaseInheritance(int,int) | ||
− | BaseMoney=46800 | + | BaseMoney=46800, total=35700 |
Constructor:CBaseInheritance(int,int) | Constructor:CBaseInheritance(int,int) | ||
Constructor:CDriveInheritance(int,int) | Constructor:CDriveInheritance(int,int) | ||
452行: | 452行: | ||
Constructor:CBaseInheritance(int,int) | Constructor:CBaseInheritance(int,int) | ||
Constructor:CDriveInheritance(int,int) | Constructor:CDriveInheritance(int,int) | ||
− | BaseMoney=34800 | + | BaseMoney=34800, total=35700 |
Constructor:CBaseInheritance(int,int) | Constructor:CBaseInheritance(int,int) | ||
Constructer:CDeriveArrInheritance(int,int,int*,int) | Constructer:CDeriveArrInheritance(int,int,int*,int) | ||
− | BaseMoney=34800 | + | BaseMoney=34800, total=36520 |
Constructor:CBaseInheritance(int,int) | Constructor:CBaseInheritance(int,int) | ||
Constructer:CDeriveDiscountInheritance(int,int,double) | Constructer:CDeriveDiscountInheritance(int,int,double) | ||
− | BaseMoney=46800 | + | BaseMoney=46800, total=23400 |
Destructor:~CBaseInheritance() | Destructor:~CBaseInheritance() | ||
</syntaxhighlight2> | </syntaxhighlight2> |