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...

Given the following stack declaration, which of the following function definitions would correctly implement the destructor?

struct StackFrame { char data; StackFrame *link; }; typedef StackFrame* StackFramePtr; class Stack { public: Stack( ); Stack(const Stack& a_stack); ~Stack( ); void push(char the_symbol); char pop( ); bool empty( ) const; private: StackFramePtr top; }; a. top=NULL; b. char next; while (! empty( )) next = pop( );//pop calls delete. c. char next; while(!empty( )) next = push(); d. none of the above

Computer Science & Information Technology

When you point to a hyperlink, the pointer becomes the shape of a(n) ____ to indicate the text or object contains a hyperlink.

A. question mark B. exclamation point C. hand D. foot

Computer Science & Information Technology

Your blog can include WordArt, pictures, and symbols

Indicate whether the statement is true or false

Computer Science & Information Technology

All the following are options on the Share feature on the File tab EXCEPT:

A) Present Offline. B) Invite People. C) Email. D) Post to Blog.

Computer Science & Information Technology