ITPEC FE Morning October 2019 Question 9
ITPEC FE Morning October 2019 — Question 9 of 80
Overriding for Polymorphism — a subclass redefines a method inherited from its superclass.
Overriding allows a class to provide a specific implementation of a method already defined in its superclass. This is the mechanism behind polymorphism — the same method call behaves differently depending on the object's actual type.
Why not others:
- (b) Generalization/Abstraction — collecting common properties of multiple classes into one superclass
- (c) Overloading — same method name, different parameter lists (number, type, or order)
- (d) Encapsulation — hiding internal structure behind an external interface
Key distinction: Overriding = same method signature, different class (parent → child). Overloading = same method name, different parameters, same class.
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.