You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
741 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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 »ù´¡2;
/**
* æ­£æ¹å½¢ç±»ï¼Œå®žçްShape接å<C2A5>£
* @author The Administrator
* @version 1.0
* @created 26-10ÔÂ-2025 14:21:59
*/
class Square implements Shape {
/**
* 颜色
*/
private String color;
/**
* 边长
*/
private double sideLength;
public Square(){
}
public void finalize() throws Throwable {
}
/**
* æž„é€ æ¹æ³•åˆ<C3A5>å§åŒè¾¹é•¿åŒé¢œè‰?
*
* @param sideLength
* @param color
*/
public Square(double sideLength, String color){
}
/**
* å®žçŽ°ç»˜å¾æ¹æ³•,输出正æ¹å½¢ä¿¡æ<C2A1>¯
*/
@Override
public void draw(){
}
/**
* 实现获å<C2B7>é¢œè‰²çš„æ¹æ³?
*/
@Override
public String getColor(){
return "";
}
}//end Square