Solved

Write a Declaration for a Rectangle Named SquareShape That Is

Question 5

Multiple Choice

Write a declaration for a Rectangle named squareShape that is 400 pixels wide, 400 pixels high, and its upper-left corner position is at point (50, 50) .


A) Rectangle squareShape = new squareShape(50, 50, 400, 400) ;
B) squareShape = new Rectangle(50, 50, 400, 400) ;
C) Rectangle squareShape = new Rectangle(50, 400, 50, 400) ;
D) Rectangle squareShape = new Rectangle(50, 50, 400, 400) ;
E) Rectangle = new squareShape(400, 400, 50, 50) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions