Multiple Choice
Figure 2:
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) rectangl
C) bigRect.print() ;
D) bigRect::print() ;
Correct Answer:

Verified
Correct Answer:
Verified
Q10: A(n) _ function of a class changes
Q13: A member function of a class that
Q22: By default,all members of a class are
Q23: In C++,the _ is an operator called
Q26: A program or software that uses and
Q30: Which of the following class definitions is
Q33: If a member of a class is
Q39: What does ADT stand for?<br>A) abstract definition
Q40: A class is an example of a
Q43: A class object can be _.That is,