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 deployment diagram in UML?

769


Who maintains the uml specification and how is it updated?

675


What is static modeling and dynamic modeling in UML?

738


What is a pattern?

711


What are the different types of relationship composition that exists?

729


How the object diagrams gets represented in uml?

663


Detail whether UML can be used as a programming language?

674


What are the Dynamic diagrams in UML?

782


What is message-passing?

720


Does Visio Standard have UML?

737


What are the goals of UML?

888


What is a uml package?

846


What are the different views that have to be considered before the buildup of an object oriented software system?

857


How does elaborating software requirements lead to inconsisteencies!

2330


What are the different types of implementation terms in uml?

627