Class diagrams

<<Previous  Next >>

  • Class diagrams shows the classes used in the system. Each class has some properties and operations. Relationships between the classes are shown in class diagram. Different types of relationships exist between the classes. It is a static view of system used to assist in modeling. 
  • Association is allowing instance of object to perform an action on its behalf. E.g. A Student updates his Daily task. Here Student and Task are the classes while update is the relation.
  • Aggregation is best described as “has a “relationship. E.g. an employee has a task.
  • Composition is a more specific representation of Aggregation having a multiplicity. Eg. Employees of Project1 have a Login task. 
  • Generalization relationship says that one class may have more related classes. The main class is the super class while the related classes are the subtypes. 
  • E.g. Person is the main class. Employee and manager are the sub classes. 
  • Realization exists between two classes when one of them must realize, or implement, the behavior specified by the other. E.g. Employee daily tasks are updated by the Manager. 
  • A Dependency relationship is when any change made to one class/interface cause the behavior of some other class to change. E.g. changing task definition will change the employee status. 
  • The multiplicity of the association denotes the number of objects that can participate in then relationship. E.g. an employee will update one task, but the task is updated by multiple employees. The common multiplicities are 0..1, 1, 0..*,1..*           

<<Previous  Next>>



Write your comment - Share Knowledge and Experience


More Related Links
What is UML?

Answer - UML is Unified Modeling Language. .....

Define modeling in UML and it advantages.

Answer - Model is a simplification of reality, blueprint of the actual system.....

What are the different views in UML?

Answer - Use Case view - Presents the requirements of a system......

Define SDLC?

Answer - SDLC of a system included processes like Use case driven, Architecture centric, Iterative and Incremental......

Explain the types of diagrams in UML.

Answer - We have nine types of diagram in UML.....

What are the advantages of using UML?

Answer - UML breaks the complex system into discrete pieces that can be understood easily......

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring