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.
a-a/CompositeShape.java

62 lines
812 B

package 2;
import 2.Shape;
import 2.Shape;
/**
* 澶嶅悎鍥惧舰绫?
* @author The Administrator
* @version 1.0
* @created 26-10月-2025 14:20:13
*/
class CompositeShape implements Shape, Shape {
private String color;
private List<Shape> shapes = new ArrayList<>();
public CompositeShape(){
}
public void finalize() throws Throwable {
}
/**
*
* @param color
*/
public CompositeShape(String color){
}
/**
*
* @param shape
*/
public void addShape(Shape shape){
}
@Override
public void draw(){
}
@Override
public double getArea(){
return 0;
}
@Override
public String getColor(){
return "";
}
/**
*
* @param shape
*/
public void removeShape(Shape shape){
}
}//end CompositeShape