Question: ((in java )) 1- Class _Point No argument constructor used to initiate an x and y with a zero toString used to print the current

((in java ))
1- Class _Point No argument constructor used to initiate an x and y with a zero toString used to print the current point position Setter and getter for setting x and y
2- Class Circle A one argument constructor used to set points to (0,0) Three argument constructor used to set the points and the radius toString used to print the position, radius, area and circumference The next equations used to calculate the area and circumference = = 2
3- Class Cylinder Two argument constructor used to set the cylinder's radius and height with point (0,0) toString used to print the position, radius, circle area, height, volume and surface area of the cylinder. This equations used to calculate the surface area and volume of cylinder = = 2 + 2
4- Class _Rectangle Two argument constructor used to set the width and height of the rectangle Four argument constructor used to set a rectangle at (x,y) point with specific width and height toString should print the position, height, width, area and circumference for the create rectangle The next equations used for certain methods = = 2( + )
Point -x: Int -y: Int constructor. MyPoint) -constructor. MyPoint(Int:xInty) + setLocation(Int: x, Inty): void + SetX 11 : 1) ; void + setY(Int:y):void getX(): Int + getY(): Int + to String: vold Extends Extends Circle Rectangle -radius: Double - height: Double - width: Double -constructor Circle (Double :) -constructor Circle (Double :r. Int :x, Inty) + setRadius (Double: ):void + getRadius (): Double + getArea(): Double + getCircumference(): Double + toString:void constructor Rectangle(Double :w, Double :h) constructor Rectangle(Int: x, Inty, Double :w. Double :h) + setHeight(Double : h):void + setWidth(Double : w): vold +getHeight(): Double + getWidth(): Double +getArea(): Double + getCircumference(): Double + toString(): void Extends Cylinder - height: Double *constructor Cylinder (Double:r, Double:h) *constructor Cylinder (Int: x, Inty, Double :r, Double :h) +gelSurface Area : Double +gelVolume : Double + setHeighth: Double): vold +getHeight(): Double +toString(): vold
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
