Professional Documents
Culture Documents
Rectangle
- length: int
- width: int
Circle
- diameter: double
+ Circle ()
+ setDiameter(d:double): void
+ getDiameter (): double
+ findArea (): double
+ findCircumference (): double
Download & store the class files (Rectangle.class & Circle.class) in the Tutorial 8 folder.
width:4.
d) Print the dimensions of r1, and the new area and perimeter.
f) Print the area and circumference of c1. (Be sure the answers are not zero)
h) Allow a user to enter the diameter of another circle and create the
i) Create the relevant objects for the following and print the total area and total