Computer Science, asked by parthapal1922, 1 year ago

Explain the importance of class template with example.

Answers

Answered by khushi769
0

Hello ,ur answer is given below:-

Function templates are special functions that can operate with generic types. This allows us to create a function template whose functionality can be adapted to more than one type or class without repeating the entire code for each type. In C++ this can be achieved using template parameters.

Similar questions