Cpp クラス 継承 デストラクタ 新しいページはコチラ
提供: yonewiki
(→クラス 継承 デストラクタ) |
(→クラス 継承 デストラクタ) |
||
63行: | 63行: | ||
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 |
Destructer:~CDeriveDiscountInheritance() | Destructer:~CDeriveDiscountInheritance() | ||
Destructor:~CBaseInheritance() | Destructor:~CBaseInheritance() | ||
101行: | 101行: | ||
CBaseInheritance* pCBaseInheritanceUpcast; | CBaseInheritance* pCBaseInheritanceUpcast; | ||
pCBaseInheritanceUpcast = pCBaseInheritanceUpcastF(1); | pCBaseInheritanceUpcast = pCBaseInheritanceUpcastF(1); | ||
− | pCBaseInheritanceUpcast-> | + | pCBaseInheritanceUpcast->mf_vDispValue(); |
delete pCBaseInheritanceUpcast; | delete pCBaseInheritanceUpcast; | ||
pCBaseInheritanceUpcast = pCBaseInheritanceUpcastF(2); | pCBaseInheritanceUpcast = pCBaseInheritanceUpcastF(2); | ||
− | pCBaseInheritanceUpcast-> | + | pCBaseInheritanceUpcast->mf_vDispValue(); |
delete pCBaseInheritanceUpcast; | delete pCBaseInheritanceUpcast; | ||
pCBaseInheritanceUpcast = pCBaseInheritanceUpcastF(3); | pCBaseInheritanceUpcast = pCBaseInheritanceUpcastF(3); | ||
− | pCBaseInheritanceUpcast-> | + | pCBaseInheritanceUpcast->mf_vDispValue(); |
delete pCBaseInheritanceUpcast; | delete pCBaseInheritanceUpcast; | ||
123行: | 123行: | ||
Constructor:CBaseInheritance(int,int) | Constructor:CBaseInheritance(int,int) | ||
Constructor:CDriveInheritance(int,int) | Constructor:CDriveInheritance(int,int) | ||
− | BaseMoney=34800 | + | BaseMoney=34800, total=35700 |
Destructer:~CDeriveInheritance() | Destructer:~CDeriveInheritance() | ||
Destructor:~CBaseInheritance() | Destructor:~CBaseInheritance() | ||
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 |
Destructer:~CDeriveArrInheritance() | Destructer:~CDeriveArrInheritance() | ||
Destructor:~CBaseInheritance() | Destructor:~CBaseInheritance() | ||
Constructor:CBaseInheritance(int,int) | Constructor:CBaseInheritance(int,int) | ||
Constructer:CDeriveDiscountInheritance(int,int,double) | Constructer:CDeriveDiscountInheritance(int,int,double) | ||
− | BaseMoney=46800 | + | BaseMoney=46800, total=23400 |
Destructer:~CDeriveDiscountInheritance() | Destructer:~CDeriveDiscountInheritance() | ||
Destructor:~CBaseInheritance() | Destructor:~CBaseInheritance() |