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

Computer Science & Information Technology

You might also like to view...

Which of the following is not a name for a big O run time?

a. Constant run time. b.Variable run time. c. Linear run time. d. Quadratic run time.

Computer Science & Information Technology

You can left-click a word that is marked as misspelled to display suggested correct spellings.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology