Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の質問は:
純粋仮想関数の戻り型はVOIDですか?/または、純粋仮想関数の戻り型は「VOID」のみであるというのは本当ですか?
2番目の質問は:純粋仮想関数は定義を持つことができますか?または、純粋仮想関数は定義を持つことができますか?
はい、純粋仮想関数は void を返すことができます。
いいえ、純粋仮想関数に定義を含めることはできません。「純粋な仮想」の「純粋」は、デフォルトの定義がないことを意味します。