Shapes
Run eclipse and create a new Project named "Shapes". Create in this project a package shapes and add the class Rectangle to it. Read the documentation about the abstract class java.awt.geom.Point2D and comment the code of Rectangle.
Add a new class Test in the default package with a main method and use it to create, move and print a rectangle.
Following the example of Rectangle, add a new class Square in the package shapes. To avoid the code duplication, propose two solutions, one based on an abstract class, the second on delegation.
Propose a solution to create a List in Test in which you may put instances of Rectangle or Square, but no other type of object.