Question: Extend Exercise Graphics E3.20 by supplying a House constructor for specifying the position and size. Then populate your screen with a few houses of
Extend Exercise •• Graphics E3.20 by supplying a House constructor for specifying the position and size. Then populate your screen with a few houses of different sizes.
Data from Graphics E3.20
Write a program that draws a picture of a house. It could be as simple as the accompanying figure, or if you like, more elaborate (3-D, skyscraper, marble columns in the entryway, whatever). Implement a class House and supply a method draw(Graphics2D g2) that draws the house.
Step by Step Solution
3.50 Rating (160 Votes )
There are 3 Steps involved in it
To extend Exercise Graphics E320 and implement a class House with a method drawGraphics2D g2 to draw ... View full answer
Get step-by-step solutions from verified subject matter experts
