0% found this document useful (0 votes)
8 views1 page

Lab 2

The lab focuses on teaching students how to create UML class diagrams by identifying classes and their relationships, specifically using inheritance, aggregation, and composition. The scenario involves an Employee Management System that manages different types of employees and departments. Students will learn to represent the relationships between full-time and part-time employees and their association with departments in a UML diagram.

Uploaded by

mujtabasaif547
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Lab 2

The lab focuses on teaching students how to create UML class diagrams by identifying classes and their relationships, specifically using inheritance, aggregation, and composition. The scenario involves an Employee Management System that manages different types of employees and departments. Students will learn to represent the relationships between full-time and part-time employees and their association with departments in a UML diagram.

Uploaded by

mujtabasaif547
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab 2: Class Diagram

Objective:
The objective of this lab is to teach students how to identify classes and
relationships between classes and draw a UML class diagram by applying the
concepts of inheritance, aggregation and composition.

Learning Outcomes:
After this lab, the students will be able to draw a UML class diagram for a given
scenario.

Problem Statement
Consider a scenario of an Employee Management System that is used to manage
employee records and departments. The system handles various types of
employees and departments.
Employees in the organization can be of different types, such as Full-Time and
Part-Time.
Full-time employees get a salary according to their designation whereas part-
time employees get a salary based on working hours. A Department contains
multiple employees, but an employee is associated with only one department at
a time

You are required to apply the concepts of inheritance, aggregation, and


composition to the given scenario and draw a UML class diagram.

You might also like