Question: code the following three java classes Shape + width(): double + height(): double + area(): double + perimeter(): double + in Bounds(Point) : boolean Circle
code the following three java classes

Shape + width(): double + height(): double + area(): double + perimeter(): double + in Bounds(Point) : boolean Circle Rectangle - lower Left : Point get - upperRight : Point get >> - center : Point get/set -radius: double get/set >> + Rectangle + Rectangle(Point, Point) + Rectangle(double, double) + getLowerRight(): Point + getUpper Left(): Point + Circle() + Circle(Point, double) + diameter(): Rectangle + get BoundingBox(): Rectangle The Shape class's five methods can be declared abstract. This means you don't need to write any of the code in Shape.java, but you will be required to include those methods in its subclasses. The only changes you need to make in Rectangle.java and Circle.java is to make them both extend Shape. Circle.java did not originally include a width) or height() method, but these can obviously return the same thing as diameter(). You do not need to change any private attributes to protected since you can use their get*) methods to access those variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
