Results 1 to 5 of 5
Thread: UML diagram
- 05-02-2011, 02:56 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 57
- Rep Power
- 0
UML diagram
I need to develop a UML diagram for the following code snippet:
The UML diagram should be based on a size() that calculates all the fruit in the trunk{}. Can anyone help me with this?Java Code:Branch trunk = new Branch(){ Branch branch2 = new Branch(); Mango mango_1 = new Mango(); Mango mango_2 = new Mango(); Branch branch3 = new Branch(); Branch sub_branch = new Branch(); Mango mango_3 = new Mango(); Mango mango_4 = new Mango(); Peach peach_1 = new Peach(); Branch trunk2 = new Branch(); trunk.addChild(branch2); branch2.addChild(mango_1); branch2.addChild(mango_2); trunk2.addChild(branch3); branch3.addChild(sub_branch); sub_branch.addChild(mango_3); sub_branch.addChild(mango_4); sub_branch.addChild(peach_1); }
- 05-02-2011, 03:13 PM #2
Senior Member
- Join Date
- Aug 2008
- Location
- Stockholm, Sweden
- Posts
- 119
- Rep Power
- 0
I think you forgot to post a link to your own UML diagram and ask questions about specific parts of it that you're having problems with.
Because surely you're not expecting someone to do this homework for you? That would be dishonest, unhelpful and most importantly cheating. And I can promise you that will never happen.
- 05-02-2011, 03:28 PM #3
Member
- Join Date
- Mar 2009
- Posts
- 57
- Rep Power
- 0
I am asking for guidance, not for someone to do it for me. You do not have to be so harsh, asking for help is not a crime. So my UML diagram that I started is attached, any help would be most appreciated.
- 05-02-2011, 06:38 PM #4
Senior Member
- Join Date
- Aug 2008
- Location
- Stockholm, Sweden
- Posts
- 119
- Rep Power
- 0
And just how was anyone supposed to know that from your original post? All you did was dump your homework without asking a specific question. We're not mind readers you know. ;)
Unfortunately I cannot open your file as I don't have an application that supports .doc files.
- 05-02-2011, 06:53 PM #5
Member
- Join Date
- Mar 2009
- Posts
- 57
- Rep Power
- 0
Similar Threads
-
UML diagram
By JackDaniels in forum New To JavaReplies: 7Last Post: 03-08-2011, 03:11 AM -
How to generate Data Flow Diagram(Work Flow Diagram)
By stsivaraj in forum AWT / SwingReplies: 1Last Post: 12-22-2010, 11:21 PM -
XML ER diagram
By palrakesh in forum XMLReplies: 0Last Post: 06-07-2010, 07:48 AM -
plz i need help ((ER diagram))
By sweet angle in forum JDBCReplies: 9Last Post: 02-01-2009, 10:28 PM -
UML diagram
By jvasilj1 in forum New To JavaReplies: 4Last Post: 03-08-2008, 06:29 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks