Question: Consider the Rectangle ciass discussed during this module. Here is a reminder of the - MML specification of the sethelght method from the Rectangle dass:
Consider the Rectangle ciass discussed during this module. Here is a reminder of the - MML specification of the sethelght method from the Rectangle dass: tsetHeight (double) Assume that an array, colled myrectangles, has been created to hold so pectangle objects Which one of the instructions below cocrectly rets the height of the last rectangle in the array 15 by using the setheight methotr? Stect one. A mykectangletiength = setheighti15 0. myshectandies[49 - setheightis): myRectangles[a0] setheight(15) (P. mylectanglesisol werteightisk. miviliectaretenta5/setheightison
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
