CS253

CS253: Software Development with C++                

Spring 2017                

UML                

UML Lab                

Description                

In this lab, we will discuss UML, the Unified Modeling Language. Specifically, we will be discussing UML’s Class diagram aspect. It’s a way of describing class relationships graphically.                 

These diagrams help us to describe the relationships of classes in a complex system. They also help us to actually design our classes, as opposed to “design by coding”.                 

Understand the Class Diagram                

Consider this diagram from http://edn.embarcadero.com/article/31863#classdiagrams                 

You should understand how the following are indicated (look here for help):                 

Creating a Class Diagram                

Now, consider the following classes:                 

  1. Draw a class diagram for these objects.
  2. Indicate any abstract classes.
  3. Give each class attributes and operations, as needed.
  4. Draw association lines between classes.
  5. Add multiplicities.
  6. Add generalization triangles.
  7. Add association navigability arrows.

For the tasks in that list, there are no hard right or wrong answers. Should a Tire have a pointer to its associated Car? Where do I use aggregation, as opposed to association? These are design questions.                 

Modified: 2009-04-30T22:19                 

User: Guest                 

Check: HTML CSS
Edit History Source
Apply to CSU | Contact CSU | Disclaimer | Equal Opportunity
Colorado State University, Fort Collins, CO 80523 USA
© 2015 Colorado State University
CS Building