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

How do we represent private, public and protected in class diagrams?

494


What are the elements in State Chart diagrams?

559


What are the different views in UML?

533


What is contract?

597


Explain about realization and its relationships?

543






Difference between Activity and Sequence Diagram?

574


What are the different approaches to store knowledge?

523


Can you give us a brief defining the architecture?

524


Who maintains the uml specification and how is it updated?

498


What is UML diagram?

547


What is mean by relational and object dbms?

518


What are the goals of UML?

707


What shall I go for Package Diagram?

2416


What are the three types of modeling in UML?

596


What is use case diagram in UML?

595