Records
Data structures grouping multiple named fields of potentially different types, representing composite data entities. Records (structs, classes) organize related data improving code clarity. Each field has a name and type, accessed through field names rather than indices. Records are fundamental to organizing complex data in real-world applications.
Real World
When you sign up for Netflix, your account is stored as a record with fields like name, email, subscription tier, and payment date — each a different data type grouped under one entity.
Exam Focus
When asked to 'define a record', state it groups fields of different types — contrast explicitly with arrays storing one type.
How well did you know this?