Q:

What is the difference between function overloading and templates in c++?

0

What is the difference between function overloading and templates?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer : 

Both function overloading and templates are examples of polymorphism features of OOP. Function overloading is used when multiple functions do similar operations, templates are used when multiple functions do identical operations.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Interview Questions For Experienced

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Can we combine C and C++ code?... >>
<< What is a template function in c++?...