ITPEC FE Morning October 2018 Question 48
ITPEC FE Morning October 2018 — Question 48 of 80
Class vs Object in OOP — class is a blueprint, object is an instance.
- •Class — a template that defines shared behavior and attributes for a group of objects
- •Object — a particular instance of a class, holding actual attribute values
Why not others:
- (b) — class definition is correct, but object is NOT the blueprint — class is the blueprint
- (c) — reversed: class does not contain real values — objects do
- (d) — fully reversed: class is not an instance, and object is not a template
Key rule: Class = blueprint/template (defines structure), Object = instance (holds real data). Think: const obj = new Class().
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.