Consider the problem of adding a convexity test to existing, immutable, and not modifiable shapes classes.
This is a typical decorator pattern alike problem.
External dispatch solution:
(Source code) (Compiled Eiffel code)

Consider the problem of adding a convexity test to existing, immutable, and not modifiable shapes classes.
This is a typical decorator pattern alike problem.
(Source code) (Compiled Eiffel code)
(mos at ua.pt) University of Aveiro, DETI/IEETA