The class diagram shows how the different entities (people, things, and data) relate to each other; in other words, it shows the static structures of the system. A class diagram can be used to display logical classes, which are typically the kinds of things the business people in an organization talk about : rock bands, CDs, radio play; or loans, home mortgages, car loans, and interest rates. Class diagrams can also be used to show implementation classes, which are the things that programmers typically deal with. An implementation class diagram will probably show some of the same classes as the logical classes diagram.The implementation class diagram won't be drawn with the same attributes, however, because it will most likely have references to things like Vectors and HashMaps.
Classes are composed of three things: a name, attributes, and operations. Below is an example of a class.
Class diagrams also display relationships such as containment, inheritance, associations and others. Below is an example of an associative relationship:
Classes are represented by rectangles which show the name of the class and optionally the name of the operations and attributes. Compartments are used to divide the class name, attributes and operations. Additionally constraints, initial values and parameters may be assigned to classes.
Related Posts :
UML Intro
UML State Machine
UML Use Case Diagram
UML Activity Diagram
UML Component Diagram
UML Deployment Diagram
UML Intro
UML State Machine
UML Use Case Diagram
UML Activity Diagram
UML Component Diagram
UML Deployment Diagram