From 602ab69370f5b520932edfbcb1044b626fd6ba21 Mon Sep 17 00:00:00 2001 From: pc9arzikf <2675083410@qq.com> Date: Sun, 26 Oct 2025 13:51:51 +0800 Subject: [PATCH] ADD file via upload --- Square.java | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Square.java diff --git a/Square.java b/Square.java new file mode 100644 index 0000000..68f1f42 --- /dev/null +++ b/Square.java @@ -0,0 +1,41 @@ +package 矩形与正方形(LSP); + + +/** + * 姝f柟褰㈢被锛堥潪 public锛? + * @author 方初阳 + * @version 1.0 + * @created 23-10月-2025 20:05:33 + */ +class Square implements Shape { + + private double side; + + public Square(){ + + } + + public void finalize() throws Throwable { + + } + /** + * + * @param side + */ + public Square(double side){ + + } + + @Override + public double getArea(){ + return 0; + } + + /** + * + * @param side + */ + public void setSide(double side){ + + } +}//end Square \ No newline at end of file