Question: Please help ASAP! USING JAVA and please show the OUTPUT!! Thanks in advance! (10 pts) Define a class named Square Square must extend Rectangle Square

Please help ASAP! USING JAVA and please show the OUTPUT!!
Thanks in advance!
 Please help ASAP! USING JAVA and please show the OUTPUT!! Thanks
in advance! (10 pts) Define a class named Square Square must extend

(10 pts) Define a class named Square Square must extend Rectangle Square must have a constructor with signature: Square(double length) e Square's constructor must call Rectangle's constructor (10 pts) Define a class named ShapeList ShapeList must extend ArrayList ShapeList must have a method with signature: ShapeList largestShapes0 . The largestShapes method must return a ShapeList that contains all Shapes with the largest area ShapeList must have a method with signature: boolean hasDistinctAreas0 . The hasDistinctAreas method returns true means that: o for all Shape A and Shape B in the ShapeList, if A and B have the same area, then A.equals(B) is true o in other words, it returns true if distinct shapes have distinct areas (10 pts) Define a class named Main Main must contain a method with signature: static void main(String[] args) . The main method must: o create an instance of ShapeList and populate this list with at least 8 distinct Rectangle objects o call the largestShapes method and print the result o call the hasDistinctAreas method and print the result Back to Homepage

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!