Doubt in oops mcq

Q­9 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

  1. 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.

  2. i am also not getting decoupling . please tell about it.

hello @tejuschaturvedi0 Parametric polymorphism is a programming language technique that enables the generic definition of functions and types, without a great deal of concern for type-based errors.
with this definition option A is correct. C is also correct as we are dealing with parametric programming.

D should be correct answer

it’s more of a java concept, you can read about it here

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.