This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
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;
public void setHeight(double height){
public void setWidth(double width){
}//end Rectangle