ITPEC FE Subject A April 2026 Question 8

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

ITPEC FE Subject A April 2026 — Question 8 of 60

Constructors are responsible for initializing objects in class-based OOP.

A constructor is the special member invoked as part of creating an instance. It runs after memory is allocated but before the object is handed to the caller, and its job is to put the new object into a valid initial state — assigning fields, validating arguments, acquiring resources.

Answer (c)

Why not others:
- (a) — reverses the order; the object is not considered fully instantiated until its constructor has finished

- (b) — contradicts the definition; in class-based OOP the constructor is precisely the initialization step

- (d) — constructors are not inherited like ordinary methods in languages such as Java or C++; a subclass defines its own and invokes the parent's explicitly

Key rule: Allocation creates the storage, the constructor makes it usable. Anything claiming a constructor runs after instantiation, or is inherited like a normal method, is wrong.

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.