#nature

"The name of a class should reflect its intrinsic nature and not a role that it plays in an association. For example, Owner would be a poor name for a class in a car manufacturer's database. What if a list of drivers is added later? What about persons who lease cars? The proper class is Person , which assumes various different roles, such as owner, driver, and lessee."

React to this quote

More by James Rumbaugh

See all