Which C++ feature lets you write one function or class that works with many data types?
Correct answer D. Templates
Explanation
Templates support generic programming; for example template T max(T a, T b) works for int, double and other types.
Answer checked How we write and check questions
Discussion