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->mf_vBaseDispValue();
+
     pCBaseInheritanceUpcast->mf_vDispValue();
 
     delete pCBaseInheritanceUpcast;
 
     delete pCBaseInheritanceUpcast;
  
 
     pCBaseInheritanceUpcast = pCBaseInheritanceUpcastF(2);
 
     pCBaseInheritanceUpcast = pCBaseInheritanceUpcastF(2);
     pCBaseInheritanceUpcast->mf_vBaseDispValue();
+
     pCBaseInheritanceUpcast->mf_vDispValue();
 
     delete pCBaseInheritanceUpcast;
 
     delete pCBaseInheritanceUpcast;
  
 
     pCBaseInheritanceUpcast = pCBaseInheritanceUpcastF(3);
 
     pCBaseInheritanceUpcast = pCBaseInheritanceUpcastF(3);
     pCBaseInheritanceUpcast->mf_vBaseDispValue();
+
     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()

2020年7月24日 (金) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス