オーバーライドした親の関数に子の関数からアクセスできますか?
以下にコードを示します。
c++
1class Parent 2{ 3public: 4 void aiueo(){} 5}; 6 7class Child : public Parent 8{ 9public: 10 void aiueo(){} 11};
Childクラスのaiudo()からParentクラスのaiueo()を呼び出すことはできるのでしょうか?
回答1件
あなたの回答
tips
プレビュー
投稿2019/04/09 12:24
オーバーライドした親の関数に子の関数からアクセスできますか?
以下にコードを示します。
c++
1class Parent 2{ 3public: 4 void aiueo(){} 5}; 6 7class Child : public Parent 8{ 9public: 10 void aiueo(){} 11};
Childクラスのaiudo()からParentクラスのaiueo()を呼び出すことはできるのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/09 14:21