The feature in object-oriented programming that allows the same operation to…

2009

The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is:

Answer: B. PolymorphismPolymorphism is the object-oriented programming feature that allows operations to be performed differently based on the specific object type. This enables a…

  1. A.

    Inheritance

  2. B.

    Polymorphism

  3. C.

    Overfunctioning

  4. D.

    Overriding

Attempted by 445 students.

Show answer & explanation

Correct answer: B

Polymorphism is the object-oriented programming feature that allows operations to be performed differently based on the specific object type. This enables a single interface to represent multiple underlying forms.

Explore the full course: Btsc Lab Assistant

Loading lesson…