Answer the following questions true (T) or false (F)
1. Templates allow only parameterized types for functions.
2. In writing a class template, the function declarations within the class require special placement.
1. False
Explanation: The template facility provides for both parameterized types in function templates and in class templates.
2. False
Explanation: The member functions for a class template are defined the same way and put in the same location as member functions for ordinary classes. The only difference is that the member functions are themselves templates.
You might also like to view...
Web page files interpreted by web browsers are formatted using the ________ language
Fill in the blank(s) with correct word
Which two technologies are used for LCD backlights? (Select two.)
A) DLP B) DMD C) Fluorescent lamp D) LED E) CRT