๐Ÿ’ปap computer science a review

Overriding method

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

An overriding method is a method in a subclass that has the same name, parameters, and return type as a method in its superclass. It is used to provide a different implementation of the method in the subclass.

"Overriding method" also found in: