error in the resource :Restaurant Orders (UML Class Diagram) (#1593)

in the diagram example proposed here:

https://www.softwareideas.net/Download/710/Restaurant-Orders--UML-Class-Diagram-

there are in some cases attributes mentioned once too much in the class which results in generating code with 2 attributes instead of 1

eg:

here UML

MenuItem

___

-Name : String

-Description : String

-Price : Real

-Meal : Meal

___

and here code generated

class MenuItem

{

private String Name;

private String Description;

private float Price;

private Meal Meal;

private Meal Meal;

}

in this example we see that meal is 2 times present!

this error is due to a misunderstanding of the association concept in UML

during an association, do not write the attribute directly in the class but on the name of the association ...

I specify that it is not a bug of the software but an error of who made the diagrams of the example

Created
4 April 2019 22:25:09
Closed
Not Closed
Requested by
fr016
State
Confirmed
Version
11.97
OperatingSystem
windows 10 x64
Solved in
Unsolved

Dusan Rodina - softwareideas.net 7 April 2019 21:58:03

Thank you for your notice, it will be fixed.

TrackedRequestComment
Your Name:
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]