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

Explain "passing by value", "passing by pointer" and "passing by reference" ?

5 Answers  


Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300”,”BullCart : 10”) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side

0 Answers   Telecom,


What happens when the extern "c" char func (char*,waste) executes?

0 Answers  


Write about all the implicit member functions of a class?

0 Answers  


What is c++ w3school?

0 Answers  






What is the difference between map and hashmap in c++?

0 Answers  


What is the best c++ compiler for windows 10?

0 Answers  


Define friend function.

0 Answers  


What is the protected keyword used for?

0 Answers  


an integer constant must have atleast one a) character b) digit c) decimal point

0 Answers  


What is a constructor and how is it called?

0 Answers  


What is a multimap c++?

0 Answers  


Categories