最終更新日:2024/08/03
(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.
正解を見る
diamond problem
編集履歴(0)
元となった辞書の項目
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.
意味(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.