We are making a series of derived classes from a particular base class. We need to be able to access a data member in the base class for most of these derived classes, but there is a chance that the representation of the data member will change. We should:
A. use a protected section for the data member
B. make an accessor function for that data member in the base class (and possibly, another function to change its value)
C. forget about inheritance and use composition
D. make a pure virtual data member, then use dynamic binding to ensure that the data member won’t be affected by any changes
B
You might also like to view...
Answer the following statements true (T) or false (F)
1. Integrity-related email security threats could result in unauthorized disclosure of sensitive information. 2. The MIME-Version field must have the parameter value 1.0 in order for the message to conform to RFCs 2045 and 2046. 3. For the text type of body no special software is required to get the full meaning of the text aside from support of the indicated character set. 4. The objective of MIME Transfer Encodings is to provide reliable delivery across the largest range of environments. 5. DKIM is designed to provide an email authentication technique that is not transparent to the end user.
Print Preview is used to see how a document will look when it is ________
Fill in the blank(s) with correct word
When professional Web designers create sites, they take into account the details that make it more polished and easier to navigate such as ____.
A. colorful graphics-based navigation links B. sidebars that include scroll bars C. display style sheets to facilitate printing D. All of the above.
?The appearance of any form element can be changed by modifying style sheets instead of the JavaScript code.
Answer the following statement true (T) or false (F)