Sign in Go Pro

Design Patterns

The Chain-of-Responsibility Pattern

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



In this lesson, we are going to explore the Chain-of-Responsibility pattern. The Chain-of-Responsibility pattern is used to decouple different tasks from a switch-alike situation, where we have different behaviors started on the check of a single value.

In this lesson you will learn ...

  • What the Chain-of-Responsibility is
  • How to build the element of a chain
  • How to link together different elements to react to multiple situations
  • How to implement this pattern in the real world
  • How to manage the created chain


Source code




Good video but why is the instructor whispering?

You need to go PRO to post comments.

Lessons in Design Patterns