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.
14 lines
389 B
14 lines
389 B
package Shape;
|
|
|
|
public class ShapeTest {
|
|
public static void main(String[] args){
|
|
System.out.println("--测试三个类--");
|
|
//circle
|
|
Circle round=new Circle(5);
|
|
Rectangle b=new Rectangle(4,7);
|
|
Triangle c=new Triangle(8,4);
|
|
ShapeUtil.drawShape(round);
|
|
ShapeUtil.drawShape(b);
|
|
ShapeUtil.drawShape(c);
|
|
}
|
|
}
|
|
|