Question: use this UML Diagram, create a rectangle class (no main method) create a second program called TestRectangle in the second program use the main method
use this UML Diagram, create a rectangle class (no main method) create a second program called TestRectangle in the second program use the main method to instantiate 2 rectangles. one should be the default size and the other 3.5 by 6.8 also print out the width, height, area and perimeter for each rectangle. write this in a Java language. Rectangle width: double height: double Rectangle() Rectangle(newWidth: double, newHeight: double) getArea(): double getPerimeter(): double
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
