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. Which of the following variable declarations is correct?
A. rectangle rectangleType;
B. class rectangleType rectangle;
C. rectangleType rectangle;
D. rectangle rectangleType.area;
Answer: C
You might also like to view...
Case-Based Critical Thinking QuestionsCase 8-1Leon wants to include a video clip with his PowerPoint presentation. To help him, please answer the questions below.Leon wants to stop the movie during the presentation. What should he do?
A. Double-click the movie window B. Click the movie window C. Right-click the movie window D. Highlight the movie window
Match the following terms to their meanings:
I. Form Header II. Section bar III. Form Footer IV. Record selector bar A. prints only on last page if forms are printed as a group B. printed on the top of the first page when records are printed as forms C. gray line in a form or report that identifies and separates one section from another D. used to select an entire record in Form view
Labels CANNOT be created from tables or queries
Indicate whether the statement is true or false
CDMA devices may receive _______________ updates, which modify a host of complex device settings.
Fill in the blank(s) with the appropriate word(s).