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 do..while loops structure?

620


What is diamond problem in c++?

542


daily Routine of father

914


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

1746


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

674






Is it possible to use a new for the reallocation of pointers ?

601


Is c or c++ more useful?

581


How long does it take to get good at leetcode?

662


What is the basic structure of a c++ program?

616


Explain the difference between new() and malloc() in c++?

625


Is recursion allowed in inline functions?

612


Difference between Abstraction and encapsulation in C++?

580


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

556


What are the 3 levels of programming languages?

540


What is the full name of logo?

596