Design Issue - Object Keys

A key is an object attribute whose value uniquely identifies a single target object. (Booch - Object Oriented Analysis and Design)

The designer must find the appropriate key attribute for every class. As Booch says, an object has state, behavior and identification. The user interface designer must identify, from the user domain, the correct key for every use case requiring object identification. Don't confuse these two design problems!

The rules are easy for the UI designer:

Finding the correct unique attribute for each class:


Last updated on 10/29/98