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

Case-Based Critical Thinking Questions ? Case 3-1 In PowerPoint 2016, Jim has been inserting text using the text box placeholders included in the slide layout. He wants to be able to add text to other locations on the slide. To insert a text box, Jim clicks the _____ tab on the ribbon.

A. View B. Format C. Insert D. Home

Computer Science & Information Technology

The data type DECIMAL(5,2) represents a number with three places to the left and two places to the right of the decimal.

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

Computer Science & Information Technology