2020-08-31 15:09:12 +02:00
|
|
|
import java.io.PrintStream;
|
|
|
|
|
|
|
|
public class Program {
|
2020-09-09 21:47:44 +02:00
|
|
|
public static void main(String[] args){
|
2020-08-31 15:09:12 +02:00
|
|
|
|
|
|
|
PrintStream out = System.out;
|
|
|
|
|
|
|
|
Circle c0 = new Cylinder(4,9);
|
|
|
|
out.println(c0);
|
|
|
|
_Rectangle r = new _Rectangle(2,7);
|
|
|
|
out.println("\n"+r);
|
|
|
|
_Point p = new Cylinder(8,6);
|
|
|
|
Circle c = (Cylinder)p;
|
|
|
|
c.setLocation(4,-3);
|
|
|
|
out.println("\n"+c);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|