H Hằng Đoàn New member Sep 18, 2021 #1 Templates simulate which of the following feature? A. Polymorphism B. Abstraction C. Encapsulation D. Inheritance
Templates simulate which of the following feature? A. Polymorphism B. Abstraction C. Encapsulation D. Inheritance
Đ Đỗ Thu Hiền New member Sep 18, 2021 #2 Answer: 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. Upvote 0 Downvote
Answer: 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.