From 3ea4bf760371de2a5bbfcb70ddf3b530a626e146 Mon Sep 17 00:00:00 2001 From: Jasmine Hegman Date: Thu, 23 Jul 2015 16:31:44 -0700 Subject: [PATCH] Further explaining the pattern --- More/Delegation/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/More/Delegation/README.rst b/More/Delegation/README.rst index 78ae5b6..69306ad 100644 --- a/More/Delegation/README.rst +++ b/More/Delegation/README.rst @@ -4,7 +4,7 @@ Purpose ------- -Demonstrate the Delegator pattern. +Demonstrate the Delegator pattern, where an object, instead of performing one of its stated tasks, delegates that task to an associated helper object. In this case TeamLead professes to writeCode and Usage uses this, while TeamLead delegates writeCode to JuniorDeveloper's writeBadCode function. This inverts the responsibility so that Usage is unknowingly executing writeBadCode. Examples --------