ITPEC FE Subject A April 2024 Question 36

Source exam: ITPEC FE Subject A April 2024Topic: Software Development

ITPEC FE Subject A April 2024 — Question 36 of 60

Polymorphism in OOP — providing a single interface to entities of different types.

Polymorphism allows objects of different classes to be treated through the same interface, with each class providing its own implementation.

Example: a method draw() can behave differently for Circle, Square, and Triangle objects.

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

- (b) Abstraction — focusing on important dimensions, hiding nonessential details

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

Key rule: The four pillars of OOP are Encapsulation, Abstraction, Inheritance, and Polymorphism. Each answer maps to exactly one pillar.

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.