Method Override

Noun · Development

Definitions

  1. A subclass providing its own implementation of a method already defined in a parent class, so that calls on the subclass instance execute the new behavior instead of the inherited one.

    In plain English: When a child class replaces a function it inherited from its parent with its own version.

    Example: "We overrode the `serialize()` method in the AuditLog subclass to include the timestamp format the compliance team requires."

Related Terms