Solved

Write a Declaration for a Rectangle Named SquareShape That Is

Question 32

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents