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.
|
|
package 挑战2;
|
|
|
|
|
|
import 基础2.Shape;
|
|
|
import 进阶2.Shape;
|
|
|
|
|
|
/**
|
|
|
* 鍦嗗舰绫伙紙鍋囪<E98D8B>宸叉湁锛岀敤浜庡浘褰㈣浆鎹<E6B586>級
|
|
|
* @author The Administrator
|
|
|
* @version 1.0
|
|
|
* @created 26-10月-2025 14:20:13
|
|
|
*/
|
|
|
class Circle implements Shape, Shape {
|
|
|
|
|
|
private String color;
|
|
|
private double radius;
|
|
|
|
|
|
public Circle(){
|
|
|
|
|
|
}
|
|
|
|
|
|
public void finalize() throws Throwable {
|
|
|
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
|
* @param radius
|
|
|
* @param color
|
|
|
*/
|
|
|
public Circle(double radius, String color){
|
|
|
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void draw(){
|
|
|
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public double getArea(){
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public String getColor(){
|
|
|
return "";
|
|
|
}
|
|
|
|
|
|
public double getRadius(){
|
|
|
return 0;
|
|
|
}
|
|
|
}//end Circle
|