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 declaration:rectangleType bigRect;
Which of the following statements is correct?
A. rectangleType.print();
B. rectangleType::print();
C. bigRect.print();
D. bigRect::print();
Answer: C
Computer Science & Information Technology
You might also like to view...
Mass Mail is the term given to a large mailing that is sorted by ZIP code and qualifies for reduced postage rates
Indicate whether the statement is true or false
Computer Science & Information Technology
________ is an Excel table feature in which a new column is automatically included as part of the existing table
Fill in the blank(s) with correct word
Computer Science & Information Technology