Suppose two header files t1.h and t2.h contain the declarations for class T. What happens if you include both header files in your program?

A. The program will compile fine and the first header file that is included is used.
B. You will get multiple declaration error if the header files don't have the include guard.
C. The compile will automatically decides which implementation to use.
D. The program will compile fine and the first header file that is included is used if the header files have the include guard.

B. You will get multiple declaration error if the header files don't have the include guard.
D. The program will compile fine and the first header file that is included is used if the header files have the include guard.

Computer Science & Information Technology

You might also like to view...

A new feature in Windows 10 that is used to organize open windows into task-specific groups is called

a. Program Manager. b. Virtual Desktops. c. Snap Assist. d. Task View.

Computer Science & Information Technology

When naming cells, the rows are indicated by letters and the columns by numbers

Indicate whether the statement is true or false

Computer Science & Information Technology