Lab 2
Lab 2
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