Q9 What is the use of parametric polymorphism?(more than one)
A) A function or a data type can be written generically so that it can
handle values identically without depending on their type
B) A function or a data type can be written generically so that it can
handle values identically being dependent on their type
C) A function or a data type that can accept parameters
D) Both a and c
-
sir in the parameterized overloading define specific function for different datatypes . Means that function give different output for different datatypes. so how the answer is A in solutions. Shouldn’t it be B and C.
-
i am also not getting decoupling . please tell about it.