Templates simulate which of the following feature?

a) Polymorphism
b) Abstraction
c) Encapsulation
d) Inheritance

1 thought on “Templates simulate which of the following feature?”

  1. a
    Explanation: Template function helps in writing functions that work with different types of parameters which is what polymorphism means i.e. using same function prototype to perform the same operations on different types of parameters.

Leave a Comment