88.3k views
5 votes
Making a run-time decision about which instance method to call is known as _______

a. Compile-time polymorphism
b. Runtime polymorphism
c. Inheritance
d. Encapsulation

User Supersan
by
8.6k points

1 Answer

6 votes

Final answer:

The correct answer to the provided question is runtime polymorphism, which is a feature of object-oriented programming that allows for method calls to be resolved at runtime.

Step-by-step explanation:

Making a run-time decision about which instance method to call is known as runtime polymorphism. This concept is a key feature of object-oriented programming (OOP), allowing objects to be treated as instances of their parent classes rather than their actual class. Unlike compile-time polymorphism, which resolves method calls at compile time, runtime polymorphism resolves method calls at runtime, using a mechanism like method overriding where a subclass provides a specific implementation for a method that is already defined in its superclass.