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.

  1. Inheritance
  2. Polymorphism
  3. Abstraction
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.