What is a parameterized type?
Page 1 of 1
What is a parameterized type?
Answer:
A template is a parameterized construct or type containing generic code that can use or manipulate any type. It is called parameterized because an actual type is a parameter of the code body. Polymorphism may be achieved through parameterized types. This type of polymorphism is called parameteric polymorphism. Parameteric polymorphism is the mechanism by which the same code is used on different types passed as parameters.
A template is a parameterized construct or type containing generic code that can use or manipulate any type. It is called parameterized because an actual type is a parameter of the code body. Polymorphism may be achieved through parameterized types. This type of polymorphism is called parameteric polymorphism. Parameteric polymorphism is the mechanism by which the same code is used on different types passed as parameters.
Similar topics
» What is an incomplete type?
» What is the type of the algorithm used in solving the 8 Queens problem?
» If you are using C language to implement the heterogeneous linked list, what pointer type will you use?
» What is the type of the algorithm used in solving the 8 Queens problem?
» If you are using C language to implement the heterogeneous linked list, what pointer type will you use?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|