Design a system enabling to draw a graphic image. A graphic image is composed of lines, rectangles, texts and groups. A group may be composed of other groups, lines, rectangles and texts.
This solution allows a good decoupling, and a good extensibility.
This solution has no decoupling, no extensibility and the composed objects have not a uniform processing
No decoupling, no extensibility and none uniform protocol in this solution. Only the unique access point for the client is present.
Probably the worst solution. No decoupling, no extensibility and none uniform protocol
In this solution, there is no decoupling, no extensiblity. Except for the composition managing, there is no uniform protocol
No decoupling, no extensibility, but there is a good effort on uniform processing
Except the non-maximal factorization of the composition and the non-uniform protocol on composition managing, this solution is not so bad.