volume_mute

Class Diagram for an Email System — Identifying Classes

publish date2026/06/08 22:17:20.288929 UTC

volume_mute

You are asked to model the object classes used to implement an email system, focusing on messages and mailboxes. Which of the following would be appropriate classes in such a model? Select all that apply.

Correct Answer

(1) Mailbox
(2) EmailMessage
(3) Folder
(4) Attachment

Explanation

A class diagram for an email system should model the software objects that represent the domain concepts. Appropriate classes include: Mailbox (holds messages, has folders), EmailMessage (has attributes like sender, recipient, subject, body, timestamp), Folder (organizes messages within a mailbox), and Attachment (files attached to messages). Physical server hardware and network connection speed are infrastructure concerns — not object classes in the software model.

Reference

Software Engineering, Ian Sommerville, 9th edition


Quizzes you can take where this question appears