In the Chapter 5 sample development, we defined the DrawableShape class that includes a method to draw one of the three possible shapes—rectangle, rounded rectangle, or ellipse. Modify the DrawableShape class as a super class of the three subclasses Rectangle, RoundedRectangle, and Ellipse. The actual drawing of a shape is done by the drawShape method defined in each of the three subclasses. Using the DrawingBoard helper class from Chapter 5 and the four classes defined in this exercise, write a screensaver program that draws 10 rectangles, 15 rounded rectangles, and 20 ellipses of various sizes. All shapes will move smoothly across the screen.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.