Question: Consider the UML class diagram below. Rectangle length: double height: double area : double Rectangle() Rectangle(length : double, height : double) + setArea(): void +
Consider the UML class diagram below. Rectangle length: double height: double area : double Rectangle() Rectangle(length : double, height : double) + setArea(): void + setArea(length : double, height : double): void + getArea(): double Which of the statements below is true? The return type of the method setAreal) is vold. The accessibility modifier of the method setArea() is private. The return type for the constructors is void. The accessibility modifier for the constructor Rectangle(length: double, height: double) is public. The default constructor for the class Rectangle is Rectangle()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
