117k views
2 votes
Which of the following is a template definition?

a. template

b. template

c. template class d.

User Rliu
by
7.5k points

2 Answers

4 votes

Answer:

adding styles from one template to another

option B would be correct

Step-by-step explanation:

User Chrisis
by
7.1k points
5 votes

Answer:

b. template<classT>.

Step-by-step explanation:

Template functions are that can work with generic types. Template lets us to create a function so that more than 1 type or class can adapt the functionality of that function.

We can write the template function as following:-

template<class typename>.

It matches to the option b.

User Vicnoob
by
7.0k points