简体   繁体   中英

UML Class Diagram for Online Takeaway Ordering Service (Similar to JustEat)

I am currently in the process of setting up Class Diagrams for an Online Takeaway Service, similar to that of JustEat.

I don't really have much experience when it comes to creating UML Diagrams but I was wondering if someone could take a look at my current Class Diagram and perhaps give me some advice or correction to point me in the right direction?

I have attached a SCREENSHOT of my current progress.

Many Thanks, Jay

Without knowing the business case it's impossible to elaborate on semantics. However, here a few (mostly syntactical) tips:

  • Leave away the cls prefix in your classes. A capital first letter already indicates that its a class (or a type in general)
  • In the same way let all your attributes and operations start wit a lower case letter. It follows the same common convention as the previous.
  • Use role names. Eg between Customer and Cart place the role name cart near the Cart to indicate that Customer has a cart attribute which is of type Cart .
  • I would probably decouple the authentication from the Customer class and create an Authentication class on its own.

I assume that the missing parameters and general void return values are due to the early stage of your design.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM