What is a parameterized type?



What is a parameterized type?..

Answer / 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

More C++ General Interview Questions

Please explain the reference variable in c++?

0 Answers  


Mention the ways in which parameterized can be invoked. Give an example of each.

0 Answers  


Is multimap sorted c++?

0 Answers  


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

0 Answers  


Can the creation of operator** is allowed to perform the to-the-power-of operations?

0 Answers  






write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

0 Answers  


Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?

1 Answers  


How to stop conversions among objects?

5 Answers   Symphony,


What are the different data types present in C++?

1 Answers  


What is private inheritance?

0 Answers  


What is the difference between #import and #include?

0 Answers  


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

0 Answers  


Categories