ITPEC FE Subject A April 2026 Question 37

Source exam: ITPEC FE Subject A April 2026Topic: OOP & Inheritance

ITPEC FE Subject A April 2026 — Question 37 of 60

Encapsulation — bundling data with the procedures that operate on it into one object, and hiding the implementation inside.

The two halves matter equally: the data and its operations live together, and the outside world reaches them only through the published interface. That is what lets the internals change without breaking callers.

Answer (b)

Why not others:
- (a) — describes abstraction / classification, grouping objects by common properties

- (c) — describes generalization, extracting shared properties upward into a base class

- (d) — describes inheritance, a subclass taking on the properties of a base class

Key rule: Encapsulation is about the boundary of a single object; inheritance and generalization are about relationships between 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.