Implement a class Polygon that contains an array list of Point2D.Double objects. Sup port methods: Draw the

Question:

Implement a class Polygon that contains an array list of Point2D.Double objects. Sup port methods:

image text in transcribed

Draw the polygon by joining adjacent points with a line, and then closing it up by joining the end and start points. Write a graphical application that draws a square and a pentagon using two Polygon objects.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: