Here is a list of file names with extensions. Pick at least one that could properly be the implementation file and at least one that can properly serve as interface file.

a) File.cxx
b) File.hxx
c) File.cc
d) File.h
e) File.cpp
f) File.hpp


Implementation: parts a) c) and e); interface parts b) d) and f).

Parts a), c) and e) have extensions that systems recognize as C++ source files, hence could serve implementation. b) d) and f) have extensions that are used by compiler writers and systems as header files. Compiler don't care much what the extension is for #include files. (The #include directive isn’t very smart.)
Note that hxx and hpp are not mentioned in the text.

Computer Science & Information Technology

You might also like to view...

In a folder window, which of the following window elements displays a list of available base locations?

A) the Path selections list button B) the navigation bar C) the back button D) the Search bar

Computer Science & Information Technology

The following is a valid C++ enumeration type:enum places {1ST, 2ND, 3RD, 4TH};.

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

Computer Science & Information Technology

The LOWER function converts all lowercase letters in a text string to uppercase.

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

Computer Science & Information Technology

Which of the following is not permanent storage devices?

a. floppy disk b. hard disk c. flash stick d. CD-ROM e. main memory

Computer Science & Information Technology