187k views
2 votes
A template class is a class in which ___________.

a. at least one type is parameterized

b. at least one field is not generic

c. no fields are generic

d. all types are parameterized

User Herta
by
4.8k points

2 Answers

5 votes

Answer:

d. all types are parameterized

Step-by-step explanation:

A template class is used to create a class in which the objects are classified in diffrente parameters, a class template is preconsidered to be something with a certain characteristics and a vertain properties and it is divided by this characteristics and this properties, this is often used for C++ so keep that in mind.

User MotionGrafika
by
5.1k points
3 votes

Answer: (A) At least one type is parameterized

Step-by-step explanation:

A template class is the type of class in which the one type are parameterized atleast in each template class. The template class mainly provide the various type of specifications so that it can generate the class based on the different types of parameters.

A template class is basically initialized by passing the template argument in the given types. In this type of class atleast one type is defined as the generic type.

Therefore, Option (A) is correct.

User Malik Shahzad
by
5.6k points