Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose you need to write code for a program for group chat. Whenever a user will send a message then it will be delivered to

Suppose you need to write code for a program for group chat. Whenever a user will send a message then it will be delivered to all other participants in the chat. Any online user of the chat group can send and receive the message. Let's implement this case scenario using mediator design pattern.
Classes of the system is given below. But in the diagram some statements of the classes are deleted. Deleted parts are shown with red "?" symbol in the diagram.
Match the deleted parts with the appropriate statements (Note: Statements are also given in the figure).
a- users: ArrayList User
b- chat:Ichat
c- user:User
a- users: ArrayList|-c,||-a||||||I-c,||-b,III-aI-a,||1-C,I-a,||-b,III-c
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions