Writing an object description from a requirement
Names an object, its attributes with data types and its methods, using only what the requirement needs. Example: Student has name: string, age: integer, getAge().
Understanding Writing an object description from a requirement in VCE Software Development U3O1
What it does: The description includes only the attributes the requirement mentions (title and pages) and gives each a suitable data type and a getter method. getAge() and setAge(newAge) use camelCase with a verb first, which shows how to name methods that read and change the age attribute. Name is text (string) and age is a whole number (integer). Swapping the data types is a common mistake. Checking the description against the requirements shows that favouriteColour is irrelevant, so it should not be in the object description.
Common mistakes: An object is named with a singular, capitalised noun because it describes one item. It should be 'Student', not the lowercase plural 'students'. A title is text, so its data type must be string. It should be 'Attr: title: string'.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 10–47) and word search (Modules 10–71).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
object descriptionFill in the Blanks
Spot the Error
Student with a class code? Join your class →