Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COThanks for your reply CesarGon. Yeah I did read in a UML book that one should not lose any sleep over whether to use Aggregation or composition - the book just said default to aggregation, and change it latter, i forgot about that. This whole designing before coding is really new to me. One thing though, what do you mean by abstract whole/part relationship? Do you mean you create an abstract class and have specialized classes inherit from it? Or is it more than that? I googled it but did not find a clear definition. Thanks again
      singulars
    2. COMuch simpler than that. I mean just use a "white diamond" shape meaning "whole/part relationship", without caring whether it's an aggregation or a composition. After all, "aggregation" and "composition" are meaningless mumbo-jumbo in UML. They lack a solid definition and as soon as you try to formalise their meanings, you find serious inconsistencies. So stick with something simpler, like "whole/part", which is enough to capture the semantics of most situations you will find around you. As I said, you can complete this with annotations where necessary for extra details.
      singulars
    3. COOk great, thanks. One more thing, do you know of any sites that focus on designing code or sites for people who like to look at well designed code or code designs? I think this will help me a lot if I can read how much more experienced people than me code
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload