Context for question 2
A program stores data about avatars using Object-Oriented Programming (OOP). An avatar is a character that a user can control in a game.
The class Avatar stores the data about avatars.
| TheName : String | stores the name of the avatar |
|---|---|
| Glasses : Boolean | stores TRUE if the avatar wears glasses; stores FALSE if the avatar does not wear glasses |
| Hair : String | stores the colour of the avatar's hair |
| Age : Integer | stores the age of the avatar |
| Constructor() | initialises all attributes to its parameter values |
| GetName() | returns the name of the avatar |
| GetAge() | returns the age of the avatar |
| MeetCriteria() | takes the glasses choice and hair choice as parameters and returns whether the avatar matches the choices |