Q. Which concept allows a function to accept different types?

A
Encapsulation
B
Inheritance
C
Polymorphism
D
Abstraction
Solution:

Polymorphism allows a function to handle different types with the same method name.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!