Which of the following features of Python allows the same operation to behave differently for different object types?

Options

  • A. Encapsulation
  • B. Polymorphism
  • C. Abstraction
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. Polymorphism

Detailed Explanation

Polymorphism allows the same interface or operation to exhibit different behaviour depending on the object type.