Which of the following is true about templates?
A) Template is a feature of C++ that allows us to write one code for different data types.
B) We can write one function that can be used for all data types including user-defined types.
C) We can write one class or struct that can be used for all data types including user-defined types.
D) Template is an example of compile-time polymorphism.
Solution: D is correct
All of the given oprions are applicable for Templates