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

Do the parentheses after the type name make a difference with new?

0 Answers  


Distinguish between new and malloc and delete and free().

0 Answers  


why the size of an empty class is 1

4 Answers  


Why do we use using namespace std in c++?

0 Answers  


What is general format for a prototype?

0 Answers  






What is virtual destructors? Why they are used?

1 Answers  


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

0 Answers  


Can we define function inside main in c++?

0 Answers  


What do you mean by internal linking and external linking in c++?

1 Answers  


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

0 Answers  


What is static in c++?

0 Answers  


How to declaring variables in c++?

0 Answers  


Categories