Last Updated: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.

See correct answer

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

音声機能が動作しない場合はこちらをご確認ください
Edit Histories(0)
Source Sentence

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

Sentence quizzes to help you learn to read

Edit Histories(0)

Login / Sign up

 

Download the app!
DiQt

DiQt

Free

★★★★★★★★★★