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
375 B
14 lines
375 B
package w5;
|
|
|
|
public class Main {
|
|
ShapeUtil st;
|
|
public static void main(String[] args) {
|
|
ShapeUtil st=new ShapeUtil();
|
|
Shape circle=new Circle(9, 9);
|
|
Shape triangle=new Triangle(9, 2);
|
|
Shape retangle=new Retangle(9, 4);
|
|
st.printArea(circle);
|
|
st.printArea(triangle);
|
|
st.printArea(retangle);
|
|
}
|
|
}
|
|
|