Home »
MCQs »
OOPs MCQs
Which feature's behavior of OOP depends upon the types of data used in the operation?
16. Which feature's behavior of OOP depends upon the types of data used in the operation.
- Inheritance
- Polymorphism
- Abstraction
- Encapsulation
Answer: B) Polymorphism
Explanation:
Polymorphism behavior depends upon the types of data used in the operation. For example, if we have two int type data and we add them, then the result produced will be also of the type int.