ITPEC FE Morning October 2023 Question 47

Source exam: ITPEC FE Morning October 2023Topic: Software Development

ITPEC FE Morning October 2023 — Question 47 of 80

Polymorphism in OOP — one message, different behavior per class.

Polymorphism means the same method call produces different behavior depending on the object's class.

  • Example: calling speak() on a Dog object returns "Bark", on a Cat"Meow"
  • Enables flexible, extensible code via method overriding

Why not others:
- (a) Inheritance — reusing existing classes as a base for new ones

- (b) Information hiding / Encapsulation — exposing only the interface, hiding internals

- (c) Encapsulation — bundling data and processes into a single object

Key rule: Polymorphism = same interface, different implementations across classes.

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.