Java.
Practice 1)-Write the definition for the class Rectangle base on the modular program bellow. A data member for length of type int (private). A data member for width of type string (private). A contractor to initialize length and width to 0. Tow getter methods that return the value of length and Width of the data members/ property. A getter method name it getArea() which return the area of Rectangle. Two setter methods to set each of the
OR
OR