Extend Exercise P10.4 so that you can make the houses appear in different colors. The color should

Question:

Extend Exercise P10.4 so that you can make the houses appear in different colors. The color should be passed as an argument to the drawHouse method. Populate your frame with houses of different colors.


Data from Exercise P10.4

Extend Exercise P10.3 by supplying a drawHouse method in which you can specify the position and size. Then populate your frame with a few houses of different sizes.

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

Step by Step Answer:

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