Lab01: Test program

This commit is contained in:
HeshamTB 2020-08-31 16:09:12 +03:00
parent 7a332d5f6a
commit 8e8c36d091
Signed by: Hesham
GPG Key ID: 74876157D199B09E

18
lab-01/src/Program.java Normal file
View File

@ -0,0 +1,18 @@
import java.io.PrintStream;
public class Program {
public static void main(String args[]){
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);
}
}