using java Create a class Rectangle with
attributes length and width both
are of type double. In your class you should
provide the following:
Provide a constructor that defaults length and
width to 1.
Provide member functions that calculate the
area, perimeter and
diagonal of the rectangle.
Provide set and get functions for the
length and width attributes. The
set functions should verify that the
length and width are larger than
0.0 and less that 50.0.
Provide a member function...