Overriding Meaning: Definition, Examples, and Translations
⬆️
overriding
[ˌoʊvərˈraɪdɪŋ ]
Definition
programming
To replace a method in a superclass with a new implementation in a subclass. This allows the subclass to provide a specific implementation of the method, overriding the original implementation in the superclass.
Synonyms
replace, substitute, supersede.
Which Synonym Should You Choose?
Word | Description / Examples |
---|---|
overriding |
Refers to an act of rejecting or annulling a decision by someone in authority.
|
replace |
Use when you are taking out something old or broken and putting something new in its place.
|
substitute |
Use when you are putting a person or thing in place of another temporarily or in a specific context.
|
supersede |
Use when referring to something that takes the place of something old or outdated, often implying improvement.
|
Examples of usage
- The child class overrides the method from the parent class.
- In object-oriented programming, overriding is a common practice to customize behavior.
Translations
To see the translation, please select a language from the options available.
Origin of 'overriding'
The term 'overriding' originated in the field of computer programming, specifically in the context of object-oriented programming. It refers to the ability of a subclass to provide a specific implementation of a method that is already defined in its superclass, effectively replacing the original implementation. This concept is fundamental in inheritance and polymorphism, allowing for customization and flexibility in software development.