You are on page 1of 2

Tutorial 4: Class Diagrams

(1) (i) Using an example, define the terms “Class” and “Object” in Object Oriented Analysis
and Design.

(ii) Represent the following attribute of the class “User” in a UML Class diagram by using
standard notations.

private static String password;

(iii) Represent the following behavior of the class “ProjectManager” in a UML Class
diagram by using standard notations.

public String getProjectStatus(int projectId) {}

(2) Suppose that you have been asked to develop an Information Management System for a
software development company. The goal of this system is to monitor the activities of the
project development process. Description of the system is given bellow.
• The customers deal with the company by assigning projects to the software
development company to fulfill business requirements.
• There are different users of the system such as the project coordinators and
employees of the company. Each user has a username and password to log in to the
system.
• The system should store the details of the projects carried by the company. Each
project has a project coordinator who is capable of monitoring the progress of the
project development process externally. The role of the project coordinator will be
initiated with the project initiation and will be terminated after the project
deployment.
• An employee of the company has an employee id, a name and a designation and is
capable of getting his/her salary details.
• An employee can work as a part of any project team. One project team can have
many employees and a particular employee can only be assigned for one project
team at a time. If the project has completed, the employees will be released from
that project team and can be allocated to any other project team or remain in idle
state until he/she is assigned to a new project team.
• Each project team works on one particular project and consists of many team
members. A team member is a project manager or a software architect, or a user
interface designer, or a software engineer or a quality assurance engineer. Each
team member is an Employee of the software development company and carries
out various responsibilities depending on their role. He/she should be able to view
his/her task(s) and update the status of each task.

(i) Identify the classes for the above system.


(ii) Identify the relationships among the identified classes and fill the following table.
(First one is done for you.)

Type of Relationship Class 1 Class 2


Association (deal) Company Customer

(iii) Draw a UML Class Diagram to visualize the structure of the above system.

You might also like