Suppose a data member of a class is to be given an initial value. We have a function that clients can use for setting the initial value called setValue. For this particular data member, after the setValue function has been used once, there is no reason to use it again. Clients have been using this class for a while, but later on we realize that we could have just made a constructor that sets the initial value, saving the client from having to use a call to the setValue function. We should:

A. add the new constructor and take the setValue function out
B. leave the class the way it is, to avoid client confusion
C. add the new constructor and leave the setValue function in
D. send an email of apology to the clients


C

Computer Science & Information Technology

You might also like to view...

________ macros are stored in Access tables and are triggered by table events and are typically used to implement business logic into tables and automatically set values in fields

Fill in the blank(s) with correct word

Computer Science & Information Technology

Match the following terms to their meanings:

I. Soft Edges effect II. Background Removal III. Glow effect IV. Align selected objects V. WordArt A. aligns selected objects relative to each other B. blurs the outer edge of a picture C. a gallery of text styles D. flows a picture into the content of a presentation E. applies a colored, softly blurred outline to an object

Computer Science & Information Technology

A built-in to built-in conversion is handled by C++’s implicit conversion rules or its explicit ___________________ operator.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Referring to the figure below, please identify the letter of the choice that best matches the numbered area on the screen.

A. Which element do you click to crop a picture? B. Which element do you click to make the text wrap on the right of a picture? C. D. Which element do you use to set the left and right margins of a picture? E. Which element do you drag to change the margin size? F. Which element do you drag to change the image size?

Computer Science & Information Technology