Search coil by computer to determine displacement in multiple dimensions. Additionally, a second search coil can be added to measure torsional rotation. A more crude search coil also called exploring coil is also used in laboratory experiments in schools to measure the magnetic field in a certain region of space. In this case the search coil consists of a simple wire coil or solenoid connected to a sensitive ammeter or galvanometer. The coil is placed in the magnetic field to be measured and quickly withdrawn to a region of space with a negligible magnetic field. As the search coil moves the magnetic
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,