Purpose
of Structural Models Typically, structural models are depicted using
CRC cards,
class diagrams, and,
in some cases, object diagrams. However, before describing CRC cards,
class diagrams, and object diagrams,
we describe the basic elements of structural models (1) classes, (2) attributes, (3) operations, and (4) relationships. Classes,
Attributes, & Operations
•
Classes •
Templates
for instances of people, places, or things
•
Attributes •
Properties that describe the state of an instance of a class (an object)
•
Operations •
Actions or functions
that a class can perform Classes A
class is a general template that we use
to create specific instances, or
objects, in the problem domain. All objects of a given class are identical in structure and behavior but contain different data in their attributes. There are two general kinds of classes of interest during analysis
Share with your friends: