Computer Science, asked by TbiaSamishta, 1 year ago

Templates allows to create ................... classes. Fill in the blank

Answers

Answered by Secondman
0

"Templates allows to create generic classes .

Templates are the main way of implementing generic programming in C++.

Using templates, the developer can create generic classes as well as generic functions.

A template is basically a prototype or blueprint for creating a generic class or a generic method.

It reduces code redundancy by allowing a class to implement some preset template without rewriting everything again.

Generic programming is supported by a lot of modern programming languages.

In C++, it's achieved using templates whereas in java it's achieved using generics. However, the concept of generic programming stays the same.

Similar questions