background preloader

UML

Facebook Twitter

UML class diagram example for online shopping domain - web customer, shopping cart, product, user account, payments, orders. Here we provide an example of UML class diagram which shows a domain model for online shopping.

UML class diagram example for online shopping domain - web customer, shopping cart, product, user account, payments, orders.

The purpose of the diagram is to introduce some common terms, "dictionary" for online shopping - Customer, Web User, Account, Shopping Cart, Product, Order, Payment, etc. and relationships between. It could be used as a common ground between business analysts and software developers. Each customer has unique id and is linked to exactly one account. Account owns shopping cart and orders. Customer could register as a web user to be able to buy items online. Www.nomagic.com/images/guides/no_magic_quick_reference_guide_uml.pdf. Sparx Systems - UML 2 Tutorial - Class Diagram. Class Diagrams The class diagram shows the building blocks of any object-orientated system.

Sparx Systems - UML 2 Tutorial - Class Diagram

Class diagrams depict a static view of the model, or part of the model, describing what attributes and behavior it has rather than detailing the methods for achieving operations. Class diagrams are most useful in illustrating relationships between classes and interfaces. Generalizations, aggregations, and associations are all valuable in reflecting inheritance, composition or usage, and connections respectively.