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.

28 lines
702 B

7 years ago
  1. public class TestShape
  2. {
  3. public static void main(String[] args)
  4. {
  5. /*
  6. Circle c1 = new Circle(2.67);
  7. System.out.println("c1: ");
  8. System.out.println(c1.toString());
  9. System.out.println();
  10. Circle c2 = new Circle(3, false, "Red");
  11. System.out.println("c2: ");
  12. System.out.println(c2.toString());
  13. System.out.println();
  14. Rectangle r1 = new Rectangle(3, 2, true, "Blue");
  15. System.out.println("r1: ");
  16. System.out.println(r1.toString());
  17. System.out.println();
  18. Rectangle r2 = new Rectangle(3.2, 4, false, "Red");
  19. System.out.println("r2: ");
  20. System.out.println(r2.toString());
  21. */
  22. }
  23. }