Which of the following statements will not produce a syntax error?

a. Defining a const member function that modifies a data member of the object.
b. Invoking a non-const member function on a const object.
c. Declaring an object to be const.
d. Declaring a constructor to be const.


c. Declaring an object to be const.

Computer Science & Information Technology

You might also like to view...

[CD] Write a program that reads in the radius of a circle and prints the circle’s diameter, cir- cumference and area. Use the constant value 3.14159 for ?. Do these calculations in output state- ments.

What will be an ideal response?

Computer Science & Information Technology

By moving the column edges on the ruler at the top of the page, you can change the ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

The use of two or more criteria on the same row, it is known as a(n) ________

A) advanced query criteria. B) wildcard criteria. C) simple criteria. D) compound criteria.

Computer Science & Information Technology

Systems designers evaluate each alternative in the systems design phase for ________ by looking at economic, technical, and operational factors.

A. feasibility B. organization C. currency D. accuracy

Computer Science & Information Technology