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

Computer Science & Information Technology

You might also like to view...

What type of assessment performed by a penetration tester attempts to identify all the weaknesses found in an application or on a system?

A. health B. technical C. vulnerability D. network

Computer Science & Information Technology

Object-oriented programmers also use the term ____ when describing inheritance.

A. has-a B. from-a C. is-a D. contains

Computer Science & Information Technology