If This Is a Man to shape the book, giving it a clear sense of direction. In January 1947, the manuscript was rejected by Einaudi. The writers Cesare Pavese and Natalia Ginzburg thought it too early after the war for such an account. Levi managed to find a smaller publisher, De Silva, who printed 2,500 copies of the book, 1,500 of which were sold, mostly in Levi's hometown of Turin. In 1955, Levi signed a contract with Einaudi for a new edition, which was published in 1958. The initial printing of 2000 copies was followed by a second of the same size. An English translation
Is-a has to know about every derivative classes of Shape class. Also, it should be changed whenever new subclass of Shape are created. In object-oriented design, many view the structure of this as anathema. Here is a more subtle example of violation of LSP: This works well but when it comes to Square class, which inherits Rectangle class, it violates LSP even though the is-a relationship holds between Rectangle and Square. Because square is rectangular. The following example overrides two functions, Setwidth and SetHeight, to fix the problem. But fixing the code implies that the design is faulty. The following example,