ITPEC FE Subject A October 2025 Question 7
ITPEC FE Subject A October 2025 — Question 7 of 60
Overriding — redefining a superclass method with the same name and type signature in a subclass.
A subclass provides its own implementation of a method that already exists in the superclass, keeping the same name, same parameter types, and same return type.
Why not others:
- (a) Hiding — concealing a static method or field in a subclass (compile-time binding, not polymorphic)
- (b) Inheritance — the mechanism of acquiring fields/methods from a superclass, not redefining them
- (c) Overloading — defining methods with the same name but different signatures (different parameter count or types)
Key rule: Overriding = same name + same signature (subclass redefines). Overloading = same name + different signature.
AI-generated — may contain errors
The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.