検索結果- 英語 - 英語
検索内容:
circle-ellipse problem
noun
(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.
elliptic spring
loading!
Loading...