Which of the following is the correct syntax to draw a rectangle? a. Graphics g.drawRect(10, 20, 50,

Question:

Which of the following is the correct syntax to draw a rectangle?

a. Graphics g.drawRect(10, 20, 50, 30);

b. G.drawRect(10, 20, 50, 30);

c. G.draw.rectangle(10, 20, 50, 30);

d. Graphics.drawRect(10, 20, 50, 30);

e. G.drawRect(x = 10, y = 20, width = 50, height = 30);

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

Step by Step Answer:

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