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;};
Consider the accompanying class definition, and the object declaration:rectangleType bigRect(14,10); Which of the following statements is correct?
A. bigRect.setLengthWidth();
B. bigRect.setLengthWidth(3.0, 2.0);
C. bigRect.length = 2.0;
D. bigRect.length = bigRect.width;
Answer: B
You might also like to view...
A ____ predictable story is usually ____.
A. more; less robust B. less; more interesting C. more; more interesting D. less; less robust
When you perform a search, the matching fields might not be displayed in the list of ____________________, although the contact record does contain the search text.
Fill in the blank(s) with the appropriate word(s).
A dataflow diagram
a. shows all of the steps of the algorithm. b. shows where data is entered and is stored in an information system. c. includes the data, people, and hardware needed to help in decision making. d. includes design, development, and testing details.
Buffered and ECC memory are identical
Indicate whether the statement is true or false