ITPEC FE Morning April 2020 Question 8

Source exam: ITPEC FE Morning April 2020Topic: Basic Theory & Math

ITPEC FE Morning April 2020 — Question 8 of 80

Overriding for Polymorphism — subclass redefines a superclass method to achieve runtime polymorphism.

Overriding means a subclass provides its own implementation of a method already defined in its superclass, with the same signature.

This enables polymorphism: the same method call behaves differently depending on the actual object type at runtime.

Why not others:
- (b) Generalization — creating a class by abstracting common properties from multiple classes

- (c) Overloading — same method name, different parameter lists (compile-time, not polymorphism via overriding)

- (d) Encapsulation — hiding internal structure behind an external interface

Key rule: Overriding = same signature, different class (runtime). Overloading = same name, different params (compile-time).

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.