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.
42 lines
602 B
42 lines
602 B
package 进阶2;
|
|
|
|
|
|
/**
|
|
* @author The Administrator
|
|
* @version 1.0
|
|
* @created 26-10月-2025 14:23:25
|
|
*/
|
|
public class Rectangle implements Shape, Resizable {
|
|
|
|
private double color;
|
|
private double height;
|
|
private double width;
|
|
|
|
public Rectangle(){
|
|
|
|
}
|
|
|
|
public void finalize() throws Throwable {
|
|
|
|
}
|
|
public void draw(){
|
|
|
|
}
|
|
|
|
public double getArea(){
|
|
return 0;
|
|
}
|
|
|
|
public String getColor(){
|
|
return "";
|
|
}
|
|
|
|
/**
|
|
* factor锛氱缉鏀惧洜瀛愶紙>1鏀惧ぇ锛?<factor<1缂╁皬锛?
|
|
*
|
|
* @param factor
|
|
*/
|
|
public void resize(double factor){
|
|
|
|
}
|
|
}//end Rectangle
|