Tag: chainofresponsibility
-
How to implement Chain of Responsibility pattern in Java?
Let’s say you run a hospital. And you are developing an application to handle patients. You have created a process: All patients are first attend by a junior doctor. The junior doctor checks the symptoms and if the severity is low , she treats them , else she sends the patient to the senior doctor.…