Question: Rectangle -width: double length: double + setWidth(w: double): void + setL ength(len : double): void +get WidthO : double + getLengthO: double + getArea0: double
Rectangle -width: double length: double + setWidth(w: double): void + setL ength(len : double): void +get WidthO : double + getLengthO: double + getArea0: double 1. In the class diagram above, how many methods are there? a. 2 b, 3 c. 5 d. 7 2. In the class diagram above, how many public attributes are there? a. 2 b.3 C. 0 d. 5 3. In the class diagram above, how many private methods are there? a. 5 b. 2 C. d. 3 4. loops will run the body of the loop at least one time. a. For b. While c. Do while d. Switch 5. Ais an example of a loop that never ends. a. Infinite loop b. While loop c. For Loop d. Do while loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
