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
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 Solution
3.40 Rating (153 Votes )
There are 3 Steps involved in it
Sure I can provide a sample solution for this problem Here are the steps we are going to follow 1 Cr... View full answer
Get step-by-step solutions from verified subject matter experts
