What is the difference between function overloading and templates?
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.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
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