/*********************************************
*            UML Class Diagram               *  
*               Rectangle                    *  
* -------------------------------------------*  
* width: double                              *
* height: double                             * 
* -------------------------------------------* 
* Rectangle()                                *  
* Rectangle(width: double, height: double)   *
* getArea(): double                          *
* getPerimeter(): double                     *
*********************************************/

// Define the Rectangle class
public class Rectangle {
	double width;	// Width of rectangle
	double height;	// Height of rectangle

	/** A no-arg constructor that creates a default rectangle */
	Rectangle() {
		width = 1;
		height = 1;
	} 

	/** A constructor that creates a rectangle 
	    with the specified width and height    */
	Rectangle(double newWidth, double newHeight) {
		width = newWidth;
		height = newHeight;
	}

	/** Return the area of this rectangle */
	double getArea() {
		return width * height; 
	}

	/** Return the perimeter of this rectangle */
	double getPerimeter() {
		return 2 * (width + height);
	}
}
@@ -1,99 +1,108 @@
-/*********************************************%0A*            UML Class Diagram               *  
+            //UML Class Diagram                     %0A/**************************************************
 %0A*  
@@ -139,24 +139,29 @@
             
+     
 *  %0A* ------
@@ -197,16 +197,21 @@
 --------
+----
+-
 *  %0A* wi
@@ -247,24 +247,29 @@
             
+     
 *%0A* height: 
@@ -307,56 +307,13 @@
     
-* %0A* -------------------------------------------
+     
 * %0A*
@@ -352,24 +352,29 @@
             
+     
 *  %0A* Rectan
@@ -377,17 +377,20 @@
 ctangle(
-w
+newW
 idth: do
@@ -395,17 +395,20 @@
 double, 
-h
+newH
 eight: d
@@ -413,17 +413,16 @@
  double)
- 
   *%0A* ge
@@ -458,24 +458,29 @@
             
+    
+ 
 *%0A* getPerim
@@ -514,18 +514,29 @@
         
+     *%0A*****
 *
-%0A
 ********

Modify Rectangle UML diagram