Basic OOP in Java exercises

For this part of the exercise, look in the package called dk.aau.imi.med4.ooadp2009.javaintro.classex.

This package should contain the files Point.java, TestRectangle.java and TestParallelogram.java. Examine the file TestRectangle.java and implement the Rect class in a file called Rect.java inside the package

dk.aau.imi.med4.ooadp2009.javaintro.classex.solutions

You should then be able to run the TestRectangle.java file and get the output indicated in this file.

Once you have done the above, open the TestParallelogram.java file. To make this file run, you have to correctly define a Parallelogram class which should be stored in the same package as Rect.java.