diff --git a/Shape.java b/Shape.java new file mode 100644 index 0000000..46401d7 --- /dev/null +++ b/Shape.java @@ -0,0 +1,14 @@ +package 矩形与正方形(LSP); + + +/** + * 褰㈢姸鎺ュ彛锛堥潪 public锛屽彲鏀惧湪鍚屼竴鏂囦欢锛? + * @author 方初阳 + * @version 1.0 + * @created 23-10月-2025 20:05:46 + */ +interface Shape { + + public double getArea(); + +} \ No newline at end of file