Write a method randomShape that randomly generates objects implementing the Shape interface in the Java library API:

Question:

Write a method randomShape that randomly generates objects implementing the Shape interface in the Java library API: some mixture of rectangles, ellipses, and lines, with random positions. Call it ten times and draw all of them.

Step by Step Answer:

Related Book For  answer-question
Question Posted: