Override

Verb · Development

Definitions

  1. To redefine a method inherited from a parent class in a subclass, replacing the parent's implementation with new behavior while preserving the same method signature. Many languages (Java, C#, Kotlin) require an explicit `@Override` or `override` keyword to prevent accidental overrides.

    In plain English: Replacing an inherited behavior with a new version in a child class, so the child does something different from its parent.

    Example: "We override `toString()` in every entity class so the debugger shows something useful instead of `Object@3f2a1c`."

Related Terms