Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-2008, 11:20 PM
Member
 
Join Date: Jan 2008
Posts: 26
jvasilj1 is on a distinguished road
UML diagram
can someone help me in making a UML diagram.
here are the specifcations I came up with.

1. Construct an inheritance hierarchy with at least three classes.

2. Specify instance variables and methods for each class.

3. Draw the UML diagram.

4. Don't forget the accessability symbols

+ for public,
- for private,
# for protected.

5. Use the letter S for static methods or instance variables.

6. Make sure that each base class, derived class pair satisfies an is-a relationship.

7. Use arrows to indicate an inheritance relationship. Each arrow points from the derived class to the base class.

8. Pick at least one method (other than the toString method) that is overridden in a derived class.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-06-2008, 09:16 PM
Member
 
Join Date: Mar 2008
Posts: 2
inay is on a distinguished road
here is an example for a Person class which has variables of name and age with a constructor and some basic methods

-------------------
Person
------------------
//variables
-name: String
-age: int
---------------------
//constructor

+Person(String name, int age)
creates a Person object with a given age and name

//methods
+setName(String name) //just for example
+getName() : String
+setAge(int age)
+getAge(): int
------------------------------------
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 03-06-2008, 09:17 PM
Member
 
Join Date: Mar 2008
Posts: 2
inay is on a distinguished road
you can download StarUml, or the modules for the Netbeans 6.0.1 for some more interesting features of UML
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 03-07-2008, 08:00 PM
Member
 
Join Date: Jan 2008
Posts: 26
jvasilj1 is on a distinguished road
ok i came up with this i need the UML with specs according to my orignal post showing INHERITANCE

my 3 parts are

chief of police
.
.
.
.
.
sergent.
.
.
.
.
officer


can u desing a UML with my orignal specs for those three
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 03-08-2008, 07:29 PM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 750
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
jvasil, UML is not that difficult. If you can code in Java, or any language for that matter.. I would assume you can probably devise a way to draw up your specifications into a UML- they're just drawing of your programming ideas. You can even develop code first and then output UML based on your code in an IDE like Netbeans("reverse engineering").
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on July 13, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 11:38 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org