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...

Rewrite the following if statement as an equivalent switch statement. The variable num is of type int.

``` if (num == 0 || num == 1) control = 100; else if (num == 2) control = 200; else if (num == 3) control = 300; else control = 0; ```

Computer Science & Information Technology

Exceptions that are subject to the catch or declare rule are called:

(a) Checked exceptions (b) Unchecked exceptions (c) Fatal exceptions (d) All of the above

Computer Science & Information Technology

When you change Word options, the changes apply to:

A) the current document only. B) previously saved documents that you open, but not documents that you create. C) all documents saved to SkyDrive. D) all documents, not just the current document.

Computer Science & Information Technology

Laptops with Windows Vista/7 installed support wireless sound connectivity, but not Windows XP

Indicate whether the statement is true or false

Computer Science & Information Technology