ITPEC FE Morning October 2019 Question 47

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

ITPEC FE Morning October 2019 — Question 47 of 80

Inheritance in OOP — using attributes and functions of a parent class in a subclass.

Inheritance allows a subclass to reuse the attributes and methods defined in its parent class.

Why not others:
- (a) Encapsulation — hiding internal implementation behind an interface

- (c) Override — redefining a parent method in a subclass (a mechanism, not the concept of gaining access)

- (d) Polymorphism — one interface, different behavior depending on object type

Key rule: Inheritance = "subclass gets parent's stuff." Override and polymorphism build on top of inheritance but are separate concepts.

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.