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.

15 lines
377 B

public class A_Main1 {public static void drawGraphic(A_Graphic g) {
g.draw();
}
public static void main(String[] args) {
A_Graphic graphic = new A_Graphic();
A_Circlew5 circle = new A_Circlew5();
A_Rectanglew5 rectangle = new A_Rectanglew5();
drawGraphic(graphic);
drawGraphic(circle);
drawGraphic(rectangle);
}
}