Question: Write two methods public static void drawHouse(Graphics g, int x, int y) public static void drawCar(Graphics g, int x, int y) that draw a house
Write two methods
public static void drawHouse(Graphics g, int x, int y)
public static void drawCar(Graphics g, int x, int y)
that draw a house or car at a given position. Then write a program that calls these methods to produce a suburban scene with several houses and cars.
Step by Step Solution
3.35 Rating (164 Votes )
There are 3 Steps involved in it
The only thing our method greet does is write a line of text on the screen Calling a custom met... View full answer
Get step-by-step solutions from verified subject matter experts
