Consider the accompanying class definition, and the declaration: class rectangle
ID: 3643615 • Letter: C
Question
Consider the accompanying class definition, and the declaration:class rectangleType
{
public:
void setLengthWidth(double x, double y);
//Postcondition: length = x; width = y;
void print() const;
//Output length and width;
double area();
//Calculate and return the area of the rectangle;
double perimeter();
//Calculate and return the parameter;
rectangleType();
//Postcondition: length = 0; width = 0;
rectangleType(double x, double y);
//Postcondition: length = x; width = y;
private:
double length;
double width;
};
rectangleType bigRect;
Explanation / Answer
The following statement is correct
bigRect.print();
10. Automatic