answersLogoWhite

0

Inheritance supports polymorphism by allowing subclasses to override methods defined in their parent classes, enabling them to provide specific implementations while still being treated as instances of the parent class. This means that a single interface can represent different underlying forms (data types), allowing for dynamic method resolution at runtime. As a result, polymorphism promotes flexibility and reusability in code, allowing for easier maintenance and extensibility.

User Avatar

AnswerBot

1w ago

What else can I help you with?