You are defining A class for use in a program you are writing. Which of the
>>>>ADD: “a” lowwercse
following should be placed in the interface file for your class? Which should be placed in the implementation file for your class?

a. The class definition.
b. The declaration of a stand-alone function (neither member nor friend of the class) that uses this class type parameter, and is used as a class operation.
c. The declaration of a stand-alone overloaded operator (neither member nor friend of the class) that is to serve as a class operation.
d. The definition of a stand-alone function (neither member nor friend of the class) that uses this class type parameter, and is to serve as a class operation.
e. The definition of a friend function that is to serve as a class operation.
f. The definition of a member function.
g. The definition of a stand-alone overloaded operator (neither member nor friend of the class) that is to serve as a class operation.
h) The definition of an overloaded operator that is to serve as a class operation and is a friend of the class.
i) The main function of your program.

The interface file should include a) b) and c). Parts d) through h): All definitions of any sort go into the implementation file. Note that the class definition must also go into the implementation file. It is a good practice to #include the interface in the implementation file. Part (i), the main function goes into the application file.

Computer Science & Information Technology

You might also like to view...

Match the following terms to their meanings:

I. Field labels A. Contains boxes for different PivotTable parts II. Area Section B. Excel table that can show the same data in more than III. Values area one arrangement IV. PivotTable report C. PivotTable area that summarizes quantitative data V. Report Filter D. Identify the categories of data in each column E. Used to restrict the data displayed

Computer Science & Information Technology

Which of the following has a MAXIMUM distance of 300 meters (984 feet)?

A) 100BaseFX B) 1000BaseT C) 100BaseTX D) 10GBaseSW

Computer Science & Information Technology