Method Overriding

Back to Inheritance

A subclass provides a specific implementation of a method already defined in its superclass. The subclass version replaces the parent version when called on the subclass instance, enabling polymorphic behavior.

property inheritance method-overriding