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

1. In the template prefix, template the keyword class means that the type parameter T must be of class type.

2. It is possible to have more than one type parameter in a template definition.

1. False
Explanation: C++ permits any type to be used as a type argument in a template instantiation. In fact, the C++ standard permits use of the keyword typename instead of class.
2. True
Explanation: Most templates require only one type parameter, but template syntax permits more than one type parameter.

Computer Science & Information Technology

You might also like to view...

A(n) ________ is a way of retrieving information from one or more tables that defines a particular subset of data

A) field constraint B) validation rule C) enquiry D) query

Computer Science & Information Technology

A ________ is a prebuilt workbook used as a pattern for creating new workbooks

A) table B) style C) template D) theme

Computer Science & Information Technology