#include <iostream> using namespace std; class hoge { public: int a; hoge(){ cout << "hoge" << endl; init(); } virtual void init(){ a = 123; } }; class piyo: public hoge { public: /* piyo(){ cout << "hoge" << endl; init(); } */ virtual void init(){ </iostream>…
引用をストックしました
引用するにはまずログインしてください
引用をストックできませんでした。再度お試しください
限定公開記事のため引用できません。