Question: 10. Class templates are often useful if a. Your class is polymorphic because they ensure virtual function resolution b. Your class is a container class
10. Class templates are often useful if a. Your class is polymorphic because they ensure virtual function resolution b. Your class is a container class that holds a collection of objects c. Your class contains at least one function template d. None of the above 11. Which of the following is true? a. Class templates must be declared before non-template classes b. Class template implementations are typically in the header file c. Class templates can inherit from other class templates or regular classes d. (a) and (b) e. (b) and (c) f. All of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
