What is a header file? What is a source-code file? Discuss the purpose of each.

What will be an ideal response?


A header file typically contains a class definition, in which the member functions and data members of the class are declared (function prototypes are function declarations). A source-code file is typically used to provide the definitions of the member functions declared in the class’s header file.

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. OS/JCL job names are always assigned by the operating system to eliminate the risk that two or more jobs might have the same name. 2. The job name, the operation (JOB), and accounting information are the only required fields on an OS/JCL JOB statement. 3. Accounting information is a positional parameter that (if present) is always the second parameter on an OS/JCL JOB statement. 4. Under OS/JCL, the meaning of a positional parameter is determined by its relative position in the operands field. 5. To simplify programmer identification, the programmer’s name, a required parameter, is coded as a second positional parameter on an OS/JCL JOB statement.

Computer Science & Information Technology

The ____ of a programming language is the set of usage rules for that language.

A. logic B. semantics C. syntax D. GUI

Computer Science & Information Technology

The server on a client/server network has specialized ________ software installed.

What will be an ideal response?

Computer Science & Information Technology

A(n) _____ function contains no loops or recursions.

A. linear B. quadratic C. logarithmic D. exponential

Computer Science & Information Technology