Cpp クラス 仮想関数 新しいページはコチラ
提供: yonewiki
(→クラス 仮想関数) |
(→クラス 仮想関数) |
||
84行: | 84行: | ||
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>メイン関数 InheritanceMain.cpp<span>)</span><!-- padding 上 右 下 左--> | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>メイン関数 InheritanceMain.cpp<span>)</span><!-- padding 上 右 下 左--> | ||
− | <syntaxhighlight2 lang="cpp" line start= | + | <syntaxhighlight2 lang="cpp" line start=201> |
#include "pch.h" | #include "pch.h" | ||
#include "BaseInheritance.h" | #include "BaseInheritance.h" | ||
117行: | 117行: | ||
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">実行結果<!-- padding 上 右 下 左--> | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">実行結果<!-- padding 上 右 下 左--> | ||
− | <syntaxhighlight2 lang="text" line start= | + | <syntaxhighlight2 lang="text" line start=301> |
Constructor:CBaseInheritance(int,int) | Constructor:CBaseInheritance(int,int) | ||
BaseMoney=22800, option="none" total=22800 | BaseMoney=22800, option="none" total=22800 | ||
130行: | 130行: | ||
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>メイン関数 InheritanceMain.cpp<span>)</span><!-- padding 上 右 下 左--> | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>メイン関数 InheritanceMain.cpp<span>)</span><!-- padding 上 右 下 左--> | ||
− | <syntaxhighlight2 lang="cpp" line start= | + | <syntaxhighlight2 lang="cpp" line start=401> |
#include "pch.h" | #include "pch.h" | ||
#include "BaseInheritance.h" | #include "BaseInheritance.h" | ||
163行: | 163行: | ||
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">実行結果<!-- padding 上 右 下 左--> | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">実行結果<!-- padding 上 右 下 左--> | ||
− | <syntaxhighlight2 lang="text" line start= | + | <syntaxhighlight2 lang="text" line start=501> |
Constructor:CBaseInheritance(int,int) | Constructor:CBaseInheritance(int,int) | ||
Constructor:CDriveInheritance(int,int,int) | Constructor:CDriveInheritance(int,int,int) | ||
180行: | 180行: | ||
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>基底クラス BaseInheritance.h<span>)</span><!-- padding 上 右 下 左--> | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>基底クラス BaseInheritance.h<span>)</span><!-- padding 上 右 下 左--> | ||
− | <syntaxhighlight2 lang="cpp" line> | + | <syntaxhighlight2 lang="cpp" line start=601> |
#ifndef __BASEINHERITANCE_H_YONET__ | #ifndef __BASEINHERITANCE_H_YONET__ | ||
#define __BASEINHERITANCE_H_YONET__ | #define __BASEINHERITANCE_H_YONET__ | ||
197行: | 197行: | ||
CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth); | CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth); | ||
~CBaseInheritance(); | ~CBaseInheritance(); | ||
− | + | virtual void mfVirtual_vDispValue(); | |
void mf_vBaseDispValue(); | void mf_vBaseDispValue(); | ||
}; | }; |