It's not a secret anymore!*
The moose likes OO, Patterns, UML and Refactoring and the fly likes difference between include ,extend and uses Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "difference between include ,extend and uses" Watch "difference between include ,extend and uses" New topic
Author

difference between include ,extend and uses

Puneet N Vyas
Ranch Hand

Joined: Sep 20, 2007
Posts: 61
can any one tell me difference between these three relationships between usecases,also can any one tell me when to use uses relationship between to usecases
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Have a look at this topic (and the information found at the links referenced).
Osgar ali
Greenhorn

Joined: Jan 24, 2009
Posts: 22
I know it is too late to ans, this ans is for those who are trying to google to look for some answers.
The difference between extend and uses is
uses is "has a" relation while as extends is same as inheritance "is a" relationship
One simple example is
Use case (Check In A Passenger) this use case has 2 other relations associated with it. (Weight Language) and (Assign A Seat) When we want to define relation between then we will use <<uses>> (Assign Seat) has 2 more use cases. (Assign Window Seat) and (Assign Aisle Seat) These 2 will be shown as <<extends>> because window seat and aisle seats are/is seats.
Hope this helps
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Osgar ali, please try to use English words when posting on the forums. "ans" is not an English and your sentences may confuse some readers.

Thank you for your consideration.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between include ,extend and uses
 
Similar Threads
Difference between JPanel and JFrame
Difference
diffrence between use cases and senario
difference between synchronized list and vector
websphere