Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Difference: 'uses', 'extends', 'includes'

Answers were Sorted based on User's Feedback



Difference: 'uses', 'extends', 'includes'..

Answer / prasad

"X uses Y" indicates that the task "X" has a subtask "Y";
that is, in the process of completing task "X", task "Y"
will be completed at least once.

"X extends Y" indecates that "X" is a task of the same type
as "Y", but "X" is a special, more specific case of
doing "Y". That is, doing X is a lot like doing Y, but X
has a few extra processes to it that go above and beyond
the things that must be done in order to complete Y.

Is This Answer Correct ?    41 Yes 7 No

Difference: 'uses', 'extends', 'includes'..

Answer / prakatheesh

The <<include>> relationship means that the flow of that
use case is always included.
But a <<extend>> relationship means that the flow of the
extending use case is only
included under specific conditions, which must be specified
as the extension point of the
use case being extended.

Is This Answer Correct ?    32 Yes 6 No

Difference: 'uses', 'extends', 'includes'..

Answer / clark

Includes:

if(TRUE)

include the use case

Extends:

if(condition)

extend the use case

It's a matter of unconditional VS. conditional insertion

(Source : Uml 2002--The Unified Modeling Language
By Jean-Marc Jézéquel, Heinrich Hussmann, Stephen Cook)

Uses:

Defined in UML 1.1

Is This Answer Correct ?    22 Yes 13 No

Difference: 'uses', 'extends', 'includes'..

Answer / naveen sisupalan

If one usecase must use another usecase, then use include
relationship. If one use case may use another usecase, then
use extends relationship. uses relationship is defined in
UML 1.1.

Is This Answer Correct ?    34 Yes 26 No

Difference: 'uses', 'extends', 'includes'..

Answer / julian c

Include vs extends is nothing to do with 'always' or 'sometimes'. In UML 2.x these are dependency arrow stereotypes.

If the base use case is incomplete... i.e. we can not write, build, test and use it without the linked use case then it is MANDATORY that the other use case exists; this requires and <<include>>. Getting hung up on the always/sometimes issue is counter-productive.

If we can write, build, test and use the base use case without the linked use case existing at all then it is NOT dependent on it; the linked use case however describes how it may add functionality to the base use case - THAT'S WHY THE ARROW IS THE OTHER WAY and is stereotyped <<extend>>. The extending use case is OPTIONAL in that we may or may not provide that functionality at all.

The included use case is like a sub function that is called.
An extend use case can change any aspect of the base use case and in several places. Look at it this way; if I use MSWord to open the base use case, turn on track-changes and then edit it to represent changes I want to make (usually but not limited to additional functionality) the extending use case represents those tracked changes.

<<uses>> is UML 1.x and although still prominent in Visio Use Case stencils (finally fixed in Visio 2013) is deprecated.

Is This Answer Correct ?    2 Yes 0 No

Difference: 'uses', 'extends', 'includes'..

Answer / sajad ali

Include usecase is shared can be resuse but extend class
relationship can't shared or reuse

Is This Answer Correct ?    9 Yes 8 No

Difference: 'uses', 'extends', 'includes'..

Answer / hell boy

includes is mandatory
extends is optional
uses is for help

Is This Answer Correct ?    17 Yes 17 No

Post New Answer

More OOAD Interview Questions

Explain what is single and multiple inheritance?

0 Answers  


Describe inheritance and non-inheritance of a derived class?

0 Answers  


What is a Persistent, Transient Object?

2 Answers   Protech,


Is it possible to create partial structs, interfaces and methods?

0 Answers  


Explain about multiple inheritance?

0 Answers  


Giving reasons explain two external responsibilities of a project manager.

2 Answers  


What is the main advantage of using inheritance?

0 Answers  


Explain the purpose of composition.

0 Answers  


What are different ways to create string object?

0 Answers  


Do structs support inheritance?

0 Answers  


Is is possible to define our own functional interface?

0 Answers  


What is the base type from which all structs inherit directly?

0 Answers  


Categories