what is difference between Extend and Include with example?

Answer Posted / vivek kumar

Extending use case typically defines optional behaviour. It
is independent of the extending use case.

Include used to extract common parts of the behaviours of
two or more use cases

eg:-
Use case I am going to city.

Includes -> drive the car
Extends -> fill the petrol

Fill the petrol may not be required at all times but may
optionally be required based on the amount of petrol left
in the car.
Drive is a prerequisite hence I am including.

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is UML Architecture?

570


What is mean by a component?

606


What is class diagram in UML with example?

653


Why is UML used?

636


What relations are there between the Class Diagrams and Domain models. 

1529






What is elaboration?

597


Is UML restrictive to system development?

3251


What are the process workflows that evolve through these phases?

557


Detail whether UML can be used as a programming language?

520


What is the function of attribute facets in uml?

689


What are UML diagrams?

565


what the latest software develoment Methodologies?

2472


Explain the types of diagrams in UML.

592


What is dependency?

578


What is UML diagram in C#?

631