A
Arne Vajhøj
Patricia said:Arne Vajhøj wrote:
...
...
Isn't this just a matter of the immutable vs. mutable issue?
Each individual circle is an ellipse, and has exactly the behavior of an
ellipse whose major axis and minor axis are both equal to the radius of
the circle. There is a problem if you allow an ellipse to change
dimensions while it exists, but is that really a necessary feature of an
Ellipse class?
That is a valid point.
But even in the case of an immutable Ellipsis class, then I am still
not quite comfortable with it.
In case a new Ellipsis instance is created then if the two distances
are the same, then it really is a Circle.
Arne