How many generic types can be given inside a single template class?

How many generic types can be given inside a single template class?
A. Only 1
B. Only 3
C. Only 7
D. As many as required
 
Answer: d
Explanation: There is no restriction on the number of types to be used for making the class generic. There can be any number of generic types with a single class. Hence giving flexibility to code with all the data types.
 

Tìm kiếm

Back
Top