ITPEC FE Morning October 2020 Question 46

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

ITPEC FE Morning October 2020 — Question 46 of 80

Class vs Instance in OOP — an instance is created based on the definition of a class.

A class is a blueprint that defines attributes and methods. An instance (object) is a concrete entity created from that class using a constructor.

  • Class → template / blueprint
  • Instance → concrete object created from the class
  • One class can produce many instances
  • One instance belongs to one class

Why not others:
- (a) Reversed — the class defines specifications, not the instance

- (c) An instance is created from one class, not multiple

- (d) Multiple instances can exist for one class

Key rule: Class : Instance = Blueprint : Building. One blueprint, many buildings.

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.