Polymorphic Data Type

What is Polymorphic Data Type? Give example

Questions by chayanika39   answers by chayanika39

Showing Answers 1 - 3 of 3 Answers

gurjot911

  • Mar 5th, 2009
 

Polymorphic data type is implemented using generic pointers that stores a byte address and not the type of data stored in that memory address. so a polymorphic data type can take on any type of value as required.

ex: function( void *a, void *b)
here a and b are generic pointers that can take int as well as float (or any other) value as an argument.


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions