Question: In Graphics class which method is used to create fill a rectangle with the specified width and height? Select one: a . public abstract void

In Graphics class which method is used to create fill a rectangle with the specified width and height?
Select one:
a. public abstract void drawLine(int x1, int y1, int x2, int y2)
b. public void drawRect(int x, int y, int width, int height)
c. public abstract void drawOval(int x, int y, int width, int height)
d. public void fillRect(int x, int y, int width, int height)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!