The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is
- A. Inheritance
- B. Polymorphism
- C. Over functioning
- D. Overriding
Answer: B. Polymorphism
Explanation: Polymorphism allows objects of different classes to respond to the same method call in their own way.