最終更新日:2025/12/05
例文
復習用の問題
When designing object-oriented APIs, you should avoid the circle-ellipse problem because it forces subclasses to implement mutations that can violate stronger invariants.
正解を見る
When designing object-oriented APIs, you should avoid the circle-ellipse problem because it forces subclasses to implement mutations that can violate stronger invariants.
音声機能が動作しない場合はこちらをご確認ください
関連する単語
circle-ellipse problem
名詞
(object-oriented
programming)
The
problematic
situation
where
a
base
class
contains
methods
which
mutate
an
object
in
a
manner
which
may
invalidate
a
(stronger)
invariant
found
in
a
derived
class,
violating
the
Liskov
substitution
principle.
For
example,
if
a
circle
is
modelled
as
a
subtype
of
an
ellipse,
and
the
ellipse
has
a
method
that
stretches
it
on
one
axis,
the
circle
must
also
implement
that
method
despite
it
making
no
sense
for
a
circle.
日本語の意味
オブジェクト指向プログラミングにおいて、基底クラスに定義されたメソッドが、派生クラスで保持される強固な不変条件を破ってしまう可能性がある設計上の問題。例えば、楕円のサブタイプとして円をモデル化した際に、楕円に備わった変形メソッドを円にも実装させる必要が生じ、円としての特性に矛盾が生じるケースを示す。
項目の編集設定
- 項目の編集権限を持つユーザー - すべてのユーザー
- 項目の新規作成を審査する
- 項目の編集を審査する
- 項目の削除を審査する
- 重複の恐れのある項目名の追加を審査する
- 項目名の変更を審査する
- 審査に対する投票権限を持つユーザー - 編集者
- 決定に必要な投票数 - 1
例文の編集設定
- 例文の編集権限を持つユーザー - すべてのユーザー
- 例文の削除を審査する
- 審査に対する投票権限を持つユーザー - 編集者
- 決定に必要な投票数 - 1
問題の編集設定
- 問題の編集権限を持つユーザー - すべてのユーザー
- 審査に対する投票権限を持つユーザー - 編集者
- 決定に必要な投票数 - 1
