✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Gegeben ist folgender Programmcode:
Rectangle[] rechtecke = newRectangle[10];
rechtecke[0] =
newRectangle(15, 15, 20, 10);
rechtecke[1] =
newRectangle(10, 10, 30, 20);
rechtecke[2] =
newRectangle(5, 5, 40, 30);
Ändere die Größe des ersten Rechtecks mit Hilfe der folgenden Methode auf Breite 15 und Höhe 5.
void setSize(int width, int height)Sets the size of this Rectangle to the specified width and height. |
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!