Diagramming during programming helps you see all of the parts and pieces that go into your application. Identifying class relationships takes your diagram to the next level. It not only shows you what actions each class might take, it tells you why. Learn how to identify class relationships by watching this online video.
- View Offline
Once we have a simple conceptual diagram together, it's useful to indicate the…main relationships--also referred to as associations--between these concepts by…just drawing lines between the boxes.…Now many of these will be obvious.…But we can also go back to the Use Cases and User Stories to verify what was written.…So in my case, I know the idea or concept of a Customer had some kind of…relationship, interaction with the shopping cart.…The Shopping Cart could be filled with items. The Order is also made of items.…
There's a relationship between the Customer and the Order because they're the…one who places it, and not surprisingly the Order needs Address information, and…also Payment information and so on.…I'm not even trying to describe every single possible connection,…just the most interesting ones.…Now optionally, it maybe useful to add a short note to actually describe the…relationship. That could be something as simple as say the word Users like the…Customer uses the Shopping Cart.…Although uses is a little generic, it's better to have more specific terms.…
Let Simon Allardice introduce you to the terms—words like abstraction, inheritance, polymorphism, subclass—and guide you through defining your requirements and identifying use cases for your program. The course also covers creating conceptual models of your program with design patterns, class and sequence diagrams, and unified modeling language (UML) tools, and then shows how to convert the diagrams into code.
- Why use object-oriented design (OOD)?
- Pinpointing use cases, actors, and scenarios
- Identifying class responsibilities and relationships
- Creating class diagrams
- Using abstract classes
- Working with inheritance
- Creating advanced UML diagrams
- Understanding object-oriented design principles