最終更新日:2025/11/28

When designing class hierarchies, adhering to the Liskov substitution principle prevents unexpected behavior when a subclass replaces its superclass in client code.

正解を見る

When designing class hierarchies, adhering to the Liskov substitution principle prevents unexpected behavior when a subclass replaces its superclass in client code.

音声機能が動作しない場合はこちらをご確認ください
編集履歴(0)
元となった例文

クラス階層を設計する際、サブタイプがスーパタイプの役割を損なうことなく置換可能であるべきという原則(リスコフの置換原則)を守れば、クライアントコードでサブクラスがスーパークラスの代わりに使われたときの予期しない動作を防げます。

Sentence quizzes to help you learn to read

編集履歴(0)

ログイン / 新規登録

 

アプリをダウンロード!
DiQt

DiQt(ディクト)

無料

★★★★★★★★★★