This preview shows page 1. Sign up to view the full content.
Unformatted text preview: b. You want to return more than one value from the function c. You want to efficiently pass a large data type (like a large vector) to the function d. Both (a) and (b) are correct e. All of the above are correct 6. In a class a. All data elements and functions should be private to maximize security (prevent access to viruses). b. All data elements and functions should be public to maximize flexibility and ease of use. c. Nearly all data elements should be private and most functions should be public. d. Nearly all data elements should be public and most functions should be private. e. All data must be private, but functions are neither public nor private. 7. The primary purpose of a class constructor is to a. Build the class by identifying all of the required components. b. Initialize the values of data elements in objects of the class. c. Allocate enough memory for an object of the class....
View Full Document
- Fall '09
- Walter Daugherity