Last Updated
:2025/11/29
diamond problem
Noun
(object-oriented
programming)
The
ambiguity
that
arises
when
two
classes
B
and
C
inherit
from
A,
and
a
further
class
D
inherits
from
both
B
and
C,
so
that
if
there
is
a
method
in
A
that
B
and/or
C
has
overridden,
and
D
does
not
override
it,
it
is
unclear
which
version
of
the
method
D
should
inherit.
Japanese Meaning
オブジェクト指向プログラミングにおいて、クラスの多重継承により生じる曖昧性の問題。例えば、クラスAを継承したクラスBとクラスCがあり、さらにそれらを継承するクラスDが存在する場合、もしAのメソッドがBまたはCでオーバーライドされ、Dではオーバーライドが行われていないならば、Dがどのバージョンのメソッドを継承すべきかが不明確になる現象を指す。
Sense(1)
(object-oriented
programming)
The
ambiguity
that
arises
when
two
classes
B
and
C
inherit
from
A,
and
a
further
class
D
inherits
from
both
B
and
C,
so
that
if
there
is
a
method
in
A
that
B
and/or
C
has
overridden,
and
D
does
not
override
it,
it
is
unclear
which
version
of
the
method
D
should
inherit.
( plural )
Quizzes for review
(object-oriented programming) The ambiguity that arises when two classes B and C inherit from A, and a further class D inherits from both B and C, so that if there is a method in A that B and/or C has overridden, and D does not override it, it is unclear which version of the method D should inherit.
音声機能が動作しない場合はこちらをご確認ください
See correct answer
diamond problem
When designing multiple inheritance in C++, you must carefully handle the diamond problem to avoid duplicated base class initialization and ambiguous method calls.
See correct answer
When designing multiple inheritance in C++, you must carefully handle the diamond problem to avoid duplicated base class initialization and ambiguous method calls.
音声機能が動作しない場合はこちらをご確認ください
English - English
Word Edit Setting
- Users who have edit permission for words - All Users
- Screen new word creation
- Screen word edits
- Screen word deletion
- Screen the creation of new headword that may be duplicates
- Screen changing entry name
- Users authorized to vote on judging - Editor
- Number of votes required for decision - 1
Sentence Edit Setting
- Users who have edit permission for sentences - All Users
- Screen sentence deletion
- Users authorized to vote on judging - Editor
- Number of votes required for decision - 1
Quiz Edit Setting
- Users who have edit permission for quizzes - All Users
- Users authorized to vote on judging - Editor
- Number of votes required for decision - 1