adspace
Answer Posted / Monitosh Sharma
A template is a construct in C++ that allows the creation of generic functions or classes, which can be instantiated multiple times with different types. Templates enable code reuse and improve efficiency by avoiding the need for separate function or class definitions for each type.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers