What is a parameterized type?

Answer Posted / beena

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.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a c++ vector?

582


What is one dimensional array in c++?

571


What is c++ used for in games?

597


What is #include math h in c++?

565


Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

624






Is swift a good first language?

584


How many different levels of pointers are there?

652


What is the return value of the insertion operator?

597


What is size of string in c++?

547


If dog is a friend of boy, is boy a friend of dog?

567


What is the basic concept of c++?

570


Program to check whether a word is a sub-string or not of a string typed

1589


Which one is a preferred language C or C++? Why?

615


Can you please explain the difference between static and dynamic binding of functions?

559


What is the difference between function overloading and operator overloading?

567