Comparison of Use Case Diagram VS  Class diagram

Comparison of Use Case Diagram VS  Class diagram

There are many similarities and dissimilarities between Use Case Diagram and the Class diagram. Today I am sharing with you a brief comparison of both diagrams.

Comparison of Use Case Diagram VS  Class diagram
Comparison of Use Case Diagram VS  Class diagram

 

What kind of diagrams are use case and class diagrams?

Use case diagrams are Behavioral diagrams and Class diagrams are Structural diagrams.

What can be described with use case diagrams and class diagrams?

We can describe functional requirements by Use case diagrams and the structure of a system with Class diagrams.

How to describe use case diagrams and class diagrams?

Use case diagrams can be described by mentioning who will perform what function, and which kind of association is exist between functions (use cases) and Class diagrams can be described by showing the system’s classes, their attributes, functions, and the relationships among objects.

What kind of relationships are supported in use case diagrams and class diagrams?

Use case diagrams to support the Communicates, Includes, Extends, and Generalization relationships.

Class diagrams to support the inheritance, Association, Aggregation, Composition, Dependency, Realization.

What can be specified with use case diagrams and class diagrams?

Use case diagrams to Specify the behavior (what system will do?)

Class diagrams to Specify the internal structure that will help to complete a functionality mentioned in use cases.

How to represent use case diagrams and class diagrams?

Use cases can be denoted both by textual(i.e. use case description) and visual representation (i.e. use case diagram).

Class diagrams can be denoted by visual representation

What can be summarized with use case diagrams and class diagrams?

We can summarize relationships between use cases, actors, and systems in use case diagrams.

We can summarize the relationships between classes of the system in the class diagrams.

Order of execution can be shown  with use case diagrams and class diagrams or not?

By using the use case and class diagram, we can’t show the order in which steps are performed to achieve the goals.

 

Common Mistakes of Use Case Diagrams in software engineering

More USE Case diagram Tutorials

  1. Representing Use Case Diagram with SUC Table
  2. [Use Case Diagram] Airline Ticket Reservation System

  3. Use Case Diagram MCQs 
  4. Use Case Diagram Exercise
  5. Use Case Diagrams and examples in Software Engineering
  6. UML diagrams MCQs
  7. Use Case Descriptions of Projects
  8. How To describe Use cases?

More Class diagram Tutorials

  1. Class diagram and object diagram MCQs
  2. Class Diagram in software engineering
  3. Aggregation In Class Diagram [Examples, C++ Program]
  4. Class Diagram of Projects