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 object declaration:rectangleType bigRect(14,10); Which of the following statements is correct?
A. bigRect.setLengthWidth();
B. bigRect.setLengthWidth(3.0, 2.0);
C. bigRect.length = 2.0;
D. bigRect.length = bigRect.width;
Answer: B
You might also like to view...
What is the value of result after the following statement executes?
result = (3 * 5) % 4 + 24 / (15 - (7 - 4)); a. -6.4 b. 5 c. 1.6 d. 2.25 e. None of these
In the dialog box in the accompanying figure, which category is where you name the character style?
A. Identification B. Character Formats C. Character Color D. General
A teardrop attack involves sending a forged packet to the victim
Indicate whether the statement is true or false.
Which of the following topics is covered under the telecommunications and network CBK domain?
A. Understanding and using digital certificates B. Understanding public key infrastructure C. Understanding denial of service and spoofing attacks D. Understanding access control attacks