package 矩形与正方形(LSP); /** * 鐭╁舰绫伙紙闈?public锛? * @author 方初阳 * @version 1.0 * @created 23-10月-2025 20:04:42 */ class Rectangle implements Shape { private double height; private double width; public Rectangle(){ } public void finalize() throws Throwable { } /** * * @param width * @param height */ public Rectangle(double width, double height){ } @Override public double getArea(){ return 0; } /** * * @param height */ public void setHeight(double height){ } /** * * @param width */ public void setWidth(double width){ } }//end Rectangle