From 263b32be164da73408100d754333074aaac16f5d Mon Sep 17 00:00:00 2001 From: Peter Gribanov Date: Tue, 5 Sep 2017 14:14:42 +0300 Subject: [PATCH] correct Good solutuin --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index df832b1..1d0f44d 100644 --- a/README.md +++ b/README.md @@ -1199,10 +1199,11 @@ foreach ($rectangles as $rectangle) { } ``` -**Not good:** +**Good:** -You can separate client for differen shapes. -But this is not a best solution becous the square is still must be a subtype of the rectangle. +You must separate different shapes. +Despite the apparent similarity of the square and the rectangle, this is not so. +A square also has much in common with a rhombus, but it is not a subtype of a rhombus. ```php interface Shape