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. overfunctioning D. overriding

inheritance
polymorphism
overfunctioning
overriding

The correct answer is: B. polymorphism

Polymorphism is the ability of an object to take on many forms. In object-oriented programming, polymorphism allows you to create classes that can be used in different ways, depending on the context.

For example, you could create a class called Animal that has a method called eat(). This method would be implemented differently for each type of animal, such as a dog, a cat, or a bird.

Inheritance is the ability of a class to inherit the properties and methods of another class. This allows you to create new classes that are based on existing classes, without having to write all of the code from scratch.

Overriding is the ability to change the behavior of

a method that is inherited from another class. This allows you to customize the behavior of a class without having to change the original class.

Overfunctioning is not a term that is used in object-oriented programming.