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).
Explanation: 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.
You might also like to view...
An arrow that shows the position of the mouse is called the mouse ________
A) object B) app C) pattern D) pointer
An instance variable is considered redundant if two different classes use it and it refers to a different type of data structure in each class.
Answer the following statement true (T) or false (F)
All of the following are versions of Microsoft Office Project 2007 EXCEPT ____.
A: Standard B: Enterprise C: Professional D: Server
According to Java naming convention, which of the following names can be variables?
a. FindArea b. findArea c. totalLength d. TOTAL_LENGTH e. class