Need some help
TASK A
Open the Eclipse IDE. In your user area create a New Project with an appropriate name to be used
throughout this examination. Inside your project create a New Class entitled Room. Modify the
skeleton code produced by Eclipse so that it matches the class diagram below (you will need to
include the attributes which should default to appropriate values).
Room
-length: int
-width: int
TASK B
Modify your Room class to include the constructor and methods shown in the revised class diagram
below. The constructor accepts two arguments and should set width and length to these values. The
getLength() and getWidth() methods should return the appropriate attributes. The getArea() method
should return the area of the room (calculated as its length multiplied by its width).
Room
-length: int
-width: int
+Room( aLength: int, aWidth: int)
+getLength(): int
+getWidth(): int
+getArea(): int
Create a demonstration class for Room that constructs an instance of the Room class as shown in
the instance diagram below.
bedroom: Room
length: 10
width: 12
Display the results of using the getLength(), getWidth() and getArea() methods on your new
instance.
Once again thank you

